mirror of
https://github.com/mastodon/mastodon.git
synced 2024-08-20 21:08:15 -07:00
Updated Production guide (markdown)
parent
a15e4924c2
commit
9b6975919d
1 changed files with 10 additions and 8 deletions
|
|
@ -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`:
|
||||
|
|
|
|||
Loading…
Reference in a new issue