production
This commit is contained in:
parent
5e6ca7c998
commit
9d65881ee1
@ -15,6 +15,7 @@
|
||||
|
||||
%style=Pygments.css('.highlight')
|
||||
|
||||
=render :partial => "shared/ga" if Rails.env.production?
|
||||
|
||||
|
||||
|
||||
|
13
app/views/shared/_ga.html.erb
Normal file
13
app/views/shared/_ga.html.erb
Normal 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>
|
@ -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;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user