This commit is contained in:
Gregory Eremin
2013-07-19 19:55:44 +07:00
parent 7c52436ae0
commit 7c3cbe867f
13 changed files with 45 additions and 23 deletions
+3 -3
View File
@@ -4,8 +4,8 @@ require 'mina/rbenv'
set :user, 'www'
set :domain, '5.9.98.165'
set :deploy_to, '/home/www/apps/pastemaster'
set :repository, 'git@github.com:localhots/pastemaster.git'
set :deploy_to, '/home/www/apps/pastekitten'
set :repository, 'git@github.com:localhots/pastekitten.git'
set :branch, 'master'
set :rbenv_path, '/usr/local/rbenv'
set :app_path, ->{ "#{deploy_to}/#{current_path}" }
@@ -55,7 +55,7 @@ namespace :assetpack do
end
namespace :unicorn do
set :unicorn_pid, "/tmp/pastemaster.unicorn.pid"
set :unicorn_pid, "/tmp/pastekitten.unicorn.pid"
desc "Start unicorn"
task :start => :environment do
+3 -3
View File
@@ -1,6 +1,6 @@
protocol: postgres
username: pastemaster
password: pastemaster
username: pastekitten
password: pastekitten
host: localhost
port: 5432
database: pastemaster
database: pastekitten
+4 -4
View File
@@ -1,11 +1,11 @@
upstream pastemaster_unicorns {
server unix:/tmp/pastemaster.unicorn.sock fail_timeout=0;
upstream pastekitten_unicorns {
server unix:/tmp/pastekitten.unicorn.sock fail_timeout=0;
}
server {
listen pm.localhots.xxx:80;
server_name pm.localhots.xxx;
root /home/www/apps/pastemaster/current;
root /home/www/apps/pastekitten/current;
client_max_body_size 10M;
keepalive_timeout 5;
@@ -22,6 +22,6 @@ server {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_redirect off;
proxy_pass http://pastemaster_unicorns;
proxy_pass http://pastekitten_unicorns;
}
}
+3 -3
View File
@@ -1,9 +1,9 @@
working_directory '/home/www/apps/pastemaster/current'
working_directory '/home/www/apps/pastekitten/current'
worker_processes 2
timeout 10
listen '/tmp/pastemaster.unicorn.sock', backlog: 64
pid '/tmp/pastemaster.unicorn.pid'
listen '/tmp/pastekitten.unicorn.sock', backlog: 64
pid '/tmp/pastekitten.unicorn.pid'
stderr_path '/dev/null'
stdout_path '/dev/null'