add lepicvert.org

This commit is contained in:
Nicolas Bally 2012-08-20 19:12:47 +02:00
parent 0e2c14518f
commit 8f91dbaa97
2 changed files with 16 additions and 1 deletions

View File

@ -95,10 +95,17 @@ set :application, 'pic_vert_app'
run "cd #{deploy_to}current && rake db:migrate RAILS_ENV=#{rails_env}" run "cd #{deploy_to}current && rake db:migrate RAILS_ENV=#{rails_env}"
end end
task :nginx do
sudo "service nginx reload"
end
task :seeds do task :seeds do
run "cd #{deploy_to}current && rake db:seed RAILS_ENV=#{rails_env}" run "cd #{deploy_to}current && rake db:seed RAILS_ENV=#{rails_env}"
end end
end end

View File

@ -4,7 +4,7 @@ upstream pic_vert_app_unicorn {
server { server {
listen 80; listen 80;
server_name www2.lepicvert.asso.fr; server_name www2.lepicvert.asso.fr lepicvert.org;
root /home/web/pic_vert_app/current/public; root /home/web/pic_vert_app/current/public;
try_files $uri/index.html $uri @unicorn; try_files $uri/index.html $uri @unicorn;
@ -20,3 +20,11 @@ server {
keepalive_timeout 10; keepalive_timeout 10;
} }
server {
listen 80;
server_name www.lepicvert.org;
rewrite ^(.*) http://lepicvert.org$1 permanent;
}