We use Spring, and it is already included in the project.
bin/rails server
, bin/rspec spec/models/
, bin/rails db:migrate
.spring stop
. For example, Spring should always be restarted if there's a change in the environment keys.spring status
.Caveat: bin/rspec
is not equipped with Spring because it affects Simplecov's result. Instead, use bin/spring rspec
.
When changes in the upstream repository happen, the fork does not get those automatically and this is by design. To integrate the changes to the upstream repo that were committed since you cloned your fork or synced the last time, use the following script: ./scripts/sync_fork.sh
This will fetch the changes and merge them into your current workspace.
Use this:
After you've fetched new commits from upstream, run ./bin/setup
, and it will install new gems, npm packages, update database, and restart Rails server.
Start the app by running ./bin/startup
, if it's not already running.
Sometimes it is neccesarry to start over from the beginning or reset the current workspace to the state of the upstream branch. Use the helper ./scripts/clean_fork.sh
to set your fork to the exact same state as the upstream main branch.
Use this:
After you've done that, run ./bin/setup
, and it will update gems, npm packages, update database, and restart Rails server.
Start the app by running ./bin/startup
, if it's not already running.