production

This commit is contained in:
Nico 2013-02-08 12:14:34 +01:00
parent 5e6ca7c998
commit 9d65881ee1
3 changed files with 21 additions and 1 deletions

View File

@ -15,6 +15,7 @@
%style=Pygments.css('.highlight')
=render :partial => "shared/ga" if Rails.env.production?

View File

@ -0,0 +1,13 @@
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-11643750-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>

View File

@ -4,7 +4,7 @@ upstream site_perso_app_unicorn {
server {
listen 80;
server_name new.nicolasbally.com;
server_name new.nicolasbally.com art.nicolasbally.com;
root /home/web/site_perso_app/current/public;
try_files $uri/index.html $uri @unicorn;
@ -18,4 +18,10 @@ server {
error_page 500 502 503 504 /500.html;
client_max_body_size 4G;
keepalive_timeout 10;
}
server {
listen 80;
server_name www.nicolasbally.com nicolasbally.com www.art.nicolasbally.com;
rewrite ^(.*) http://art.nicolasbally.com$1 permanent;
}