Follow the steps below to install Team City 10.0.2 on Debian/Ubuntu with Nginx as the proxy for port 80.
Requirements:
- curl
- configure utf-8 locale of your choice (recommended)
Install Team City:
server { | |
listen *:80 default; | |
server_name _; | |
location / { | |
client_max_body_size 1G; | |
proxy_pass http://127.0.0.1:8000; | |
proxy_set_header Host $host; | |
proxy_set_header X-Real-IP $remote_addr; |
location ~* \.(?:jpg|jpeg|gif|png|ico|cur|gz|svg|svgz|mp4|ogg|ogv|webm|htc)$ { | |
expires 1M; | |
access_log off; | |
add_header Cache-Control "public"; | |
} | |
# CSS and Javascript | |
location ~* \.(?:css|js)$ { | |
expires 1y; | |
access_log off; |
I hereby claim:
To claim this, I am signing this object:
sudo apt-get install ruby-dev | |
sudo gem install rdoc | |
sudo gem install guard | |
sudo gem install guard-livereload |
I'm going to cover a simple, but effective, utility for managing state and transitions (aka workflow). We often need to store the state (status) of a model and it should only be in one state at a time.
##teamcity[testFailed message='Error' error='true' name='test_entry_code_award_counter' details='Traceback (most recent call last):|n File "/vagrant/submitz/apps/entries/tests.py", line 36, in test_entry_code_award_counter|n self.assertEqual(|'%s-%04d|' % (entry.category.code, i), entry.code)|n File "/vagrant/submitz/apps/entries/models.py", line 190, in code|n position = self.award_position|n File "/vagrant/submitz/apps/entries/models.py", line 212, in award_position|n row_number = raw[0|].row_number - 1|n File "/home/vagrant/.virtualenvs/submitz/local/lib/python2.7/site-packages/django/db/models/query.py", line 1617, in __getitem__|n return list(self)[k|]|n File "/home/vagrant/.virtualenvs/submitz/local/lib/python2.7/site-packages/django/db/models/query.py", line 1600, in __iter__|n instance = model_cls(**model_init_kwargs)|n File "/vagrant/submitz/apps/entries/models.py", line 85, in __init__|n self._status = self.status|n File "/home/vagrant/.virtualenvs/submitz/local/lib/python2. |
##teamcity[testFailed message='Error' error='true' name='test_entry_code_award_counter' details='Traceback (most recent call last):|n File "/vagrant/submitz/apps/entries/tests.py", line 36, in test_entry_code_award_counter|n self.assertEqual(|'%s-%04d|' % (entry.category.code, i), entry.code)|n File "/vagrant/submitz/apps/entries/models.py", line 190, in code|n position = self.award_position|n File "/vagrant/submitz/apps/entries/models.py", line 212, in award_position|n row_number = raw[0|].row_number - 1|n File "/home/vagrant/.virtualenvs/submitz/local/lib/python2.7/site-packages/django/db/models/query.py", line 1617, in __getitem__|n return list(self)[k|]|n File "/home/vagrant/.virtualenvs/submitz/local/lib/python2.7/site-packages/django/db/models/query.py", line 1600, in __iter__|n instance = model_cls(**model_init_kwargs)|n File "/vagrant/submitz/apps/entries/models.py", line 85, in __init__|n self._status = self.status|n File "/home/vagrant/.virtualenvs/submitz/local/lib/python2. |
INSERT INTO "entries_entry" ("created", | |
"modified", | |
"award_id", | |
"category_id", | |
"user_id", | |
"status", | |
"status_changed", | |
"position", | |
"price", | |
"title") |
for entry in award_entries: | |
try: | |
extra_data = entry.entrydata_set.get(slug='step1') | |
kunde = extra_data.answer.get('kunde') | |
agentur = extra_data.answer.get('agentur') | |
except: | |
kunde = None | |
agentur = None | |
entry_row = [ |