- Clone this repo.
$ bundle install$ rails db:create db:migrate db:seedcreates, migrates, and seeds initial records. Check out/dbfor those files.$ bundle exec rspecruns tests and verifies everything working well.$ rails sand navigate to 127.0.0.1:3000 to see welcome page.
Note: rails is an alias for rake within Rails 5+ projects. You can also run these tasks individually, like $rails db:create then rails db:migrate, etc. if you want to see output more slowly.
ssh into server.
git pullinsecret-santafolder.- Install gems:
bundle install - Migrate db:
RAILS_ENV=production rails db:migrate - Precompile assets:
RAILS_ENV=production rails assets:precompile - Clean assets:
RAILS_ENV=production rails assets:clean - Restart application:
sudo systemctl restart rails.service - If needed, restart nginx:
sudo service nginx restart