WebFaction
Community site: login faq

I need to setup test environment for rails application in nginx. It could be done in two ways 1. open a port 8000 and run the application on this 2. setup subdomain for test environment.

I tried first way by adding this line in nginx.conf server { listen 5000; server_name test.mydomain.com; root /home/brcweb/webapps/passenger/project/mydomain/public; passenger_enabled on; }

but it doesn't work. I need help to setup my test environment.

asked 15 Sep '12, 16:00

ranjan
11
accept rate: 0%


You need to assign a port using a 'custom app listening on port' application or use an SSH tunnel to directly connect.

permanent link

answered 15 Sep '12, 18:04

johns
5.4k312
accept rate: 23%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×186
×28
×19

question asked: 15 Sep '12, 16:00

question was seen: 2,157 times

last updated: 15 Sep '12, 18:04

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM