if server name is too long change server_names_hash_bucket_size in nginx configuration file at /opt/nginx/conf/nginx.conf
If everything goes right passenger_root /usr/local/rvm/gems/ruby-1.9.3-p448/gems/passenger-4.0.21; passenger_ruby /usr/local/rvm/wrappers/ruby-1.9.3-p448/ruby; else make changes in the nginx.conf file (/opt/nginx/conf/nginx.conf)
Later steps:
-
Generate the ssh key using ssh-keygen -t rsa -C "[email protected]"
-
Ask someone to add this key to the unfuddle account
-
Clone (not pull) the repositories from unfuddle to /mnt/infibeamdigital. Use git ssh urls and not https since it will ask for login each time if https is used.
-
bundle install and restore the databases
-
create symlinks in /mnt/infibeamdigital/project_symlinks
-
Add server blocks in /opt/nginx/conf/nginx.conf (Refer the nginx.conf on other server like atd6.spinr.in or safe.spinr.in)
-
Add the nginx init script by copying from some other server in /etc/init.d/nginx
-
Restart nginx (/etc/init.d/nginx restart) and you are done!
-
You might need to restart the server most of the time after you take a new pull, its better to create an alias
alias restart="/etc/init.d/nginx restart"