$ bundle install
$ rails db:create db:migrate db:seed
creates, migrates, and seeds initial records. Check out /db
for those files.$ bundle exec rspec
runs tests and verifies everything working well.$ rails s
and 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 pull
in secret-santa
folder.bundle install
RAILS_ENV=production rails db:migrate
RAILS_ENV=production rails assets:precompile
RAILS_ENV=production rails assets:clean
sudo systemctl restart rails.service
sudo service nginx restart