From 49decfbcf8a5023ab6bf10e261097afa5a8fc80d Mon Sep 17 00:00:00 2001 From: Ker Ruben Ramos Date: Thu, 26 Sep 2013 19:00:21 +0800 Subject: [PATCH 1/2] Minor fixes * add discourse to sudo * add `bundle exec` on some calls * inform user of NUM_WEB/sockets count for nginx config --- docs/INSTALL-ubuntu.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/docs/INSTALL-ubuntu.md b/docs/INSTALL-ubuntu.md index 46047beb0..dd7f173c5 100644 --- a/docs/INSTALL-ubuntu.md +++ b/docs/INSTALL-ubuntu.md @@ -104,6 +104,7 @@ Create Discourse user: # Run these commands as your normal login (e.g. "michael") sudo adduser --shell /bin/bash --gecos 'Discourse application' discourse sudo install -d -m 755 -o discourse -g discourse /var/www/discourse + sudo adduser discourse sudo Give Postgres database rights to the `discourse` user: @@ -199,8 +200,8 @@ Initialize the database: # The database name here should match the production one in database.yml cd /var/www/discourse createdb discourse_prod - RUBY_GC_MALLOC_LIMIT=90000000 RAILS_ENV=production rake db:migrate - RUBY_GC_MALLOC_LIMIT=90000000 RAILS_ENV=production rake assets:precompile + RUBY_GC_MALLOC_LIMIT=90000000 RAILS_ENV=production bundle exec rake db:migrate + RUBY_GC_MALLOC_LIMIT=90000000 RAILS_ENV=production bundle exec rake assets:precompile Not english? Set the default language as appropriate: @@ -231,6 +232,7 @@ site: Edit /etc/nginx/conf.d/discourse.conf - edit `server_name`. Example: `server_name cain.discourse.org test.cain.discourse.org;` +- change socket count depending on your NUM_WEB count - change socket paths if discourse is installed to a different location - modify root location if discourse is installed to a different location @@ -334,8 +336,8 @@ The corresponding site setting is: # "Check sample configuration files for new settings" # bundle install --without test --deployment - RUBY_GC_MALLOC_LIMIT=90000000 RAILS_ENV=production rake db:migrate - RUBY_GC_MALLOC_LIMIT=90000000 RAILS_ENV=production rake assets:precompile + RUBY_GC_MALLOC_LIMIT=90000000 RAILS_ENV=production bundle exec rake db:migrate + RUBY_GC_MALLOC_LIMIT=90000000 RAILS_ENV=production bundle exec rake assets:precompile # restart bluepill crontab -l # Here, run the command to start bluepill. From fedc32b477c0b7eab5f346b5fd0ef530df56c30f Mon Sep 17 00:00:00 2001 From: Ker Ruben Ramos Date: Fri, 4 Oct 2013 13:00:45 +0800 Subject: [PATCH 2/2] No sudo perm for user Also changed order on informing user that he'll be encountering errors that needs admin access before calling `rvm`. --- docs/INSTALL-ubuntu.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/INSTALL-ubuntu.md b/docs/INSTALL-ubuntu.md index dd7f173c5..9d6169be2 100644 --- a/docs/INSTALL-ubuntu.md +++ b/docs/INSTALL-ubuntu.md @@ -104,7 +104,6 @@ Create Discourse user: # Run these commands as your normal login (e.g. "michael") sudo adduser --shell /bin/bash --gecos 'Discourse application' discourse sudo install -d -m 755 -o discourse -g discourse /var/www/discourse - sudo adduser discourse sudo Give Postgres database rights to the `discourse` user: @@ -135,10 +134,11 @@ Install RVM # you've given discourse sudo permissions, which is *not* the default) # rvm requirements - # If discourse does not have sudo permissions (likely the case), run: + # NOTE: rvm will tell you which packages you (or your sysadmin) need + # to install during this step. As discourse does not have sudo + # permissions (likely the case), run: rvm --autolibs=read-fail requirements - # and rvm will tell you which packages you (or your sysadmin) need - # to install before it can proceed. Do that and then resume next: + # repeat untill it fully executes Continue with Discourse installation