Git Product home page Git Product logo

shaf's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

shaf's Issues

Upgrade to version 1.0.0 does not apply patches cleanly

VERBOSE=1 be shaf upgrade
Applying changes for version 0.6.0

Applying changes for version 1.0.0
patching file Rakefile
patching file config/initializers/db_migrations.rb
Hunk #1 FAILED at 2.
patch: **** malformed patch at line 44:  

Failed to apply patch for: config/initializers/db_migrations.rb
patching file config/initializers/sequel.rb
patching file config/initializers/logging.rb
patching file config/helpers.rb
patching file config/directories.rb
patching file config/database.rb
Hunk #2 FAILED at 16.
1 out of 2 hunks FAILED -- saving rejects to file config/database.rb.rej
Failed to apply patch for: config/database.rb
patching file config/bootstrap.rb
Hunk #1 succeeded at 1 with fuzz 1.
patching file api/controllers/base_controller.rb
patching file api/serializers/error_serializer.rb
patching file api/serializers/form_serializer.rb
patch: **** malformed patch at line 47:        end

Failed to apply patch for: api/serializers/form_serializer.rb
patching file config.ru

removing file: config/constants.rb

adding file: api/serializers/validation_error_serializer.rb
adding file: config/paths.rb

Applying changes for version 1.0.4
patching file api/controllers/base_controller.rb
Applying changes for version 1.1.0

Applying changes for version 1.1.1
patching file config/initializers/hal_presenter.rb
Hunk #1 succeeded at 1 with fuzz 1.
patching file config/bootstrap.rb.orig
Hunk #1 FAILED at 2.
1 out of 1 hunk FAILED -- saving rejects to file config/bootstrap.rb.orig.rej
Failed to apply patch for: config/bootstrap.rb.orig
patching file config/bootstrap.rb

Project is up-to-date! Shaf version: 1.1.1

Upgrade to version 1.0.0 break settings

Upgrading Shaf version to 1.0.0 corrupts the config file and result in commands like shaf server and shaf console exit with a hard to understand failure.

The reason for this is that the key for the default settings(default: &default) is removed from the settings yaml file (config/settings.yml)

Workaround

This can be fixed by adding that line back to the config file. The config should look similar to this:

> head config/settings.yml 
---
default: &default
  port: 3000
  public_folder: frontend/assets
  views_folder: frontend/views
  documents_dir: doc/api
  migrations_dir: db/migrations
  fixtures_dir: spec/fixtures
  paginate_per_page: 25
  http_cache: on

Can't generate migrations

All migrations, except scaffold, are broken. Nothing is generated and the output shows wrong number of arguments (given 1, expected 0)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.