mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Updated documentation
* added RVM option for single-user install * clarified Web Server options * bluepill sample config: create socket directory if it doesn't exist * add multisite.yml.production-sample * rename production.sample.rb (OCD) * make two database.yml samples (one for dev, one for prod) * fixed travis build (database.yml.sample renamed) * fix other references to database.yml.sample * clean up 'rvm requirements' instructions as per @mpapis
This commit is contained in:
@@ -28,9 +28,11 @@ Bluepill.application("your_app") do |app|
|
||||
app.uid = user
|
||||
|
||||
app.working_dir = rails_root
|
||||
sockdir = "#{rails_root}/tmp/sockets"
|
||||
File.directory? sockdir or Dir.mkdir sockdir
|
||||
num_webs.times do |i|
|
||||
app.process("thin-#{i}") do |process|
|
||||
process.start_command = "bundle exec thin start -e production -t 0 --socket #{rails_root}/tmp/sockets/thin.#{i}.sock -P #{rails_root}/tmp/pids/thin#{i}.pid -d"
|
||||
process.start_command = "bundle exec thin start -e production -t 0 --socket #{sockdir}/thin.#{i}.sock -P #{rails_root}/tmp/pids/thin#{i}.pid -d"
|
||||
|
||||
# Alternatively, you can start with a port number instead of a socket. If you do that, then you MUST update
|
||||
# the upstream section in the nginx config to match.
|
||||
|
||||
Reference in New Issue
Block a user