1
0
Fork 0
mirror of https://github.com/mastodon/mastodon.git synced 2024-08-20 21:08:15 -07:00

Updated Production guide (markdown)

Eugen 2017-01-02 11:04:23 +01:00
parent a15e4924c2
commit 9b6975919d

@ -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`: