diff --git a/Production-guide.md b/Production-guide.md index 2188b20..9852fd6 100644 --- a/Production-guide.md +++ b/Production-guide.md @@ -92,14 +92,6 @@ Then you can proceed to install project dependencies: bundle install --deployment --without development test yarn install -And setup the database for the first time, this will create the tables and basic data: - - RAILS_ENV=production bundle exec rails db:setup - -Finally, pre-compile all CSS and JavaScript files: - - RAILS_ENV=production bundle exec rails assets:precompile - ## Configuration Then you have to configure your instance: @@ -113,6 +105,16 @@ Fill in the important data, like host/port of the redis database, host/port/user To get a random string. +## Setup + +And setup the database for the first time, this will create the tables and basic data: + + RAILS_ENV=production bundle exec rails db:setup + +Finally, pre-compile all CSS and JavaScript files: + + RAILS_ENV=production bundle exec rails assets:precompile + ## Systemd Example systemd configuration for the web workers, to be placed in `/etc/systemd/system/mastodon-web.service`: