WebFaction
Community site: login faq

Hi,

I just ftp'd an app I've been working on up into my webapps/app-name directory. However the website is still using the default 'hello_world' rails app in that directory (which was created from the control panel). I cannot work out how to get nginx to use the app I uploaded rather than the 'hello_world' default. If I delete hello_world and point nginx/conf/nginx.conf server root to my new app I still get 404's. If I simply rename my app hello_world I get the error: 'Ruby (Rack) application could not be started'

Any help would be greatly appreciated!

Cheers, Mike

asked 09 Jul '12, 17:14

Michael%20Spelling's gravatar image

Michael Spel...
1123
accept rate: 0%


Pointing nginx.conf to the new application is the correct method. If you can edit your question and include how you are doing the configuration, we may be able to locate the issue.

permanent link

answered 10 Jul '12, 00:05

ryans's gravatar image

ryans ♦♦
5.0k42856
accept rate: 43%

Found the answer - run command './bin/restart' once nginx.conf settings are changed in order for them to take effect!

permanent link

answered 10 Jul '12, 07:26

Michael%20Spelling's gravatar image

Michael Spel...
1123
accept rate: 0%

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:

×183
×105
×79
×5
×3

question asked: 09 Jul '12, 17:14

question was seen: 2,515 times

last updated: 10 Jul '12, 07:26

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2017 PARAGON INTERNET GROUP LIMITED
WEBFACTION IS A SERVICE OF PARAGON INTERNET GROUP LIMITED
REGISTERED IN ENGLAND AND WALES 7573953 - VAT REGISTRATION NUMBER 182147021
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM