renatolond / mastodon-twitter-poster

Crossposter to post statuses between Mastodon and Twitter
GNU Affero General Public License v3.0
807 stars 58 forks source link

Upgrade procedure missing in README #197

Closed jacotec closed 1 year ago

jacotec commented 5 years ago

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:

bundle install --deployment --without development test
yarn install --pure-lockfile

Precompile: RAILS_ENV=production bundle exec rake assets:precompile

Is this correct? Is there some command for a database migration / update needed?

renatolond commented 5 years 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: