WebFaction
Community site: login faq

Hi I was wondering where I have to go after running the command "rails s" in order to see the changes I made. I've tried looking under http://localhost:3000 and under my webfaction page, but neither work.

asked 11 Jun '11, 12:35

Jaime
111
accept rate: 0%


Normally, we recommend that you avoid running the Rails development server and instead just restart your Nginx instance to see your changes. Instructions for restarting your Nginx instance are available on the details page for your app, which is listed here in the control panel: Apps

If you do want to run the Rails development server for some reason, then you should run from your project's script directory on the port assigned to your app (again, available in the control panel). You'll need to stop your Nginx first. Assuming your app is named "rails", its assigned port is "12345", and your project directory is "hello_world", then the following commands should work:

cd ~/webapps/rails
export PATH=$PWD/bin:$PATH
export GEM_HOME=$PWD/gems
./bin/stop
cd hello_world
./script/rails s -p 12345

You should then be able to view the site by going to whatever URL you've set up for your site in the control panel. ("localhost" won't work, since you're not running the app on your local system.)

permanent link

answered 11 Jun '11, 13:06

seanf
12.2k42136
accept rate: 37%

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:

×108

question asked: 11 Jun '11, 12:35

question was seen: 2,811 times

last updated: 11 Jun '11, 13:06

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2020 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