Skip to content

Commit 49decfb

Browse files
committed
Minor fixes
* add discourse to sudo * add `bundle exec` on some calls * inform user of NUM_WEB/sockets count for nginx config
1 parent bbfcec8 commit 49decfb

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

docs/INSTALL-ubuntu.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ Create Discourse user:
104104
# Run these commands as your normal login (e.g. "michael")
105105
sudo adduser --shell /bin/bash --gecos 'Discourse application' discourse
106106
sudo install -d -m 755 -o discourse -g discourse /var/www/discourse
107+
sudo adduser discourse sudo
107108

108109
Give Postgres database rights to the `discourse` user:
109110

@@ -199,8 +200,8 @@ Initialize the database:
199200
# The database name here should match the production one in database.yml
200201
cd /var/www/discourse
201202
createdb discourse_prod
202-
RUBY_GC_MALLOC_LIMIT=90000000 RAILS_ENV=production rake db:migrate
203-
RUBY_GC_MALLOC_LIMIT=90000000 RAILS_ENV=production rake assets:precompile
203+
RUBY_GC_MALLOC_LIMIT=90000000 RAILS_ENV=production bundle exec rake db:migrate
204+
RUBY_GC_MALLOC_LIMIT=90000000 RAILS_ENV=production bundle exec rake assets:precompile
204205

205206
Not english? Set the default language as appropriate:
206207

@@ -231,6 +232,7 @@ site:
231232
Edit /etc/nginx/conf.d/discourse.conf
232233

233234
- edit `server_name`. Example: `server_name cain.discourse.org test.cain.discourse.org;`
235+
- change socket count depending on your NUM_WEB count
234236
- change socket paths if discourse is installed to a different location
235237
- modify root location if discourse is installed to a different location
236238

@@ -334,8 +336,8 @@ The corresponding site setting is:
334336
# "Check sample configuration files for new settings"
335337
#
336338
bundle install --without test --deployment
337-
RUBY_GC_MALLOC_LIMIT=90000000 RAILS_ENV=production rake db:migrate
338-
RUBY_GC_MALLOC_LIMIT=90000000 RAILS_ENV=production rake assets:precompile
339+
RUBY_GC_MALLOC_LIMIT=90000000 RAILS_ENV=production bundle exec rake db:migrate
340+
RUBY_GC_MALLOC_LIMIT=90000000 RAILS_ENV=production bundle exec rake assets:precompile
339341
# restart bluepill
340342
crontab -l
341343
# Here, run the command to start bluepill.

0 commit comments

Comments
 (0)