If you have a "script / server", then you probably have a rails 2.x application, not 3.x. Make sure that ( rails -v
) you run rails 3.xx, instead of 2.x.
EDIT:
I was probably not clear enough. From the information provided, I see:
- you have 3.x gem rails and it shows that you are helping the screen because it cannot find the Rails 3.x application.
- You have an application created by rails 2.x gem (you have a
script/server
script and you can verify that your application is for old rails by looking at the config/environment.rb
file).
This combination will not work. You need to do something with this. If you need this old application, you can remove the 3.x gem rails and install 2.x verison. It would be even better if you could transfer this application to work with the supplier (then you do not need to remove the 3.x gem rails), but if this is not possible, you can take a look at rvm gemsets .
What I do when I need to run an old application:
rvm use ree
- if my application uses Ruby Enterprise Edition on the server, otherwise rvm use [ruby version here]
, depending on the versionrvm gemset create [application name here]
- make gemset specific to this applicationrvm alias create [application name here] ree@ [gemset name here]
- so I can quickly get back to this gemsetrvm use [alias name here]
- to switch to the ruby-gemset application combination- install all the gems needed for the application (ask other developers which versions you should use and how to install them
Then when I get back to developing this application:
rvm use [alias name here]
./script/server
- launch the application
You also need to find a tutorial and documentation for Rails 2.x if you want to develop this version.
source share