Commit b3d56f0d7ae1b4fb517e4f6d87b060acbbd0fbba
1 parent
c706f7cf
Exists in
master
and in
79 other branches
Replace thin by unicorn.
Signed-off-by: Thiago Ribeiro <thiagitosouza@gmail.com>
Showing
4 changed files
with
3 additions
and
20 deletions
Show diff stats
cookbooks/noosfero/recipes/default.rb
... | ... | @@ -89,7 +89,7 @@ execute 'software:create_licenses' do |
89 | 89 | command 'sudo -u noosfero bundle exec rake software:create_licenses RAILS_ENV=production' |
90 | 90 | end |
91 | 91 | |
92 | -template '/etc/noosfero/thin.yml' do | |
92 | +template '/etc/noosfero/unicorn.rb' do | |
93 | 93 | owner 'root'; group 'root'; mode 0644 |
94 | 94 | notifies :restart, 'service[noosfero]' |
95 | 95 | end | ... | ... |
cookbooks/noosfero/templates/nginx.conf.erb
cookbooks/noosfero/templates/thin.yml.erb
... | ... | @@ -1,15 +0,0 @@ |
1 | ---- | |
2 | -chdir: /usr/lib/noosfero | |
3 | -environment: production | |
4 | -address: 127.0.0.1 | |
5 | -port: 9000 | |
6 | -timeout: 30 | |
7 | -log: log/thin.log | |
8 | -pid: tmp/pids/thin.pid | |
9 | -max_conns: 1024 | |
10 | -max_persistent_conns: 512 | |
11 | -require: [] | |
12 | -wait: 30 | |
13 | -daemonize: true | |
14 | -servers: <%= `nproc`.strip %> | |
15 | -prefix: /social |
test/noosfero_test.sh
... | ... | @@ -5,7 +5,7 @@ test_database_connectivity() { |
5 | 5 | } |
6 | 6 | |
7 | 7 | test_noosfero_running() { |
8 | - assertTrue 'Noosfero running' 'run_on social pgrep -u noosfero -f thin' | |
8 | + assertTrue 'Noosfero running' 'run_on social pgrep -u noosfero -f unicorn' | |
9 | 9 | } |
10 | 10 | |
11 | 11 | test_noosfero_on_subdir() { | ... | ... |