Follow the steps below to install Team City on Ubuntu with Nginx as the proxy for port 80.
Install Team City:
# will install on port 8111
sudo wget -c https://gist.githubusercontent.com/simoneb/cedac22c58ad0a9e37cddd84abe975a3/raw/teamcity-install.sh -O /tmp/teamcity-install.sh
sudo sh /tmp/teamcity-install.sh
sudo rm -rf /tmp/teamcity-install.sh
Install Postgres:
See postgres.md below
Update the database settings:
sudo nano /srv/.BuildServer/config/database.properties
Install Nginx:
#will proxy port 80 to team city on 8111
sudo wget -c https://gist.githubusercontent.com/simoneb/cedac22c58ad0a9e37cddd84abe975a3/raw/nginx.sh -O /tmp/nginx.sh
sudo sh /tmp/nginx.sh
sudo rm -rf /tmp/nginx.sh
Update nginx config:
sudo nano /etc/nginx/sites-available/teamcity
Remove the default ngnix server:
sudo rm -rf /etc/nginx/sites-enabled/default
sudo rm -rf /etc/nginx/sites-available/default
Start it up:
sudo /etc/init.d/nginx start
sudo /etc/init.d/teamcity start
Commands:
#start team city
sudo /etc/init.d/teamcity start
#stop team city
sudo /etc/init.d/teamcity stop
#star nginx
sudo /etc/init.d/nginx start
#stop nginx
sudo /etc/init.d/nginx stop
#reload nginx
sudo /etc/init.d/nginx reload
#test team city on port 8111
curl http://localhost:8111
#test team city on port 80
curl http://localhost:80