Closed jacotec closed 1 year ago
Usually when there's changes, they are listed in the Changelog, such as these https://github.com/renatolond/mastodon-twitter-poster/blame/master/CHANGELOG.md#L11
Database migrations are done with
RAILS_ENV=production bundle exec rails db:migrate
To upgrade you don't need to stop the services, you can git pull and restart the services after. Usually the steps would be:
live
directory (or equivalent)bundle install
yarn install --pure-lockfile
RAILS_ENV=production bundle exec rake assets:precompile
RAILS_ENV=production bundle exec rails db:migrate
After my first attempt to deploy the Crossposter was not very successful, I took some two hours and started over, writing myself some a documentation in case I need to redo the setup somewhere later.
To complete my doc I'd like to know the needed steps for performing an upgrade. The assumed steps are:
In case some dependencies or Ruby version has changed:
Precompile:
RAILS_ENV=production bundle exec rake assets:precompile
Is this correct? Is there some command for a database migration / update needed?