Project

General

Profile

RAILS_ENV is not recognized as an internal or external command, operable program or batch file

Added by Mark Young over 11 years ago

I have been following the general Redmine instructions to install and have had very little problems up until the error described above. I am running the command "RAILS_ENC=production rake db@migrate" from my root redmine folder using the Start Command Prompt with Ruby.

I'm using Windows Server 2008 and I've followed all the instructions correctly, aside from installing Mongrel as I want to use Apache.

Any suggestions?


Replies (4)

RE: RAILS_ENV is not recognized as an internal or external command, operable program or batch file - Added by Toshi MARUYAMA over 11 years ago

Mark Young wrote:

I have been following the general Redmine instructions to install and have had very little problems up until the error described above. I am running the command "RAILS_ENC=production rake db@migrate" from my root redmine folder using the Start Command Prompt with Ruby.

I'm using Windows Server 2008 and I've followed all the instructions correctly, aside from installing Mongrel as I want to use Apache.

Any suggestions?

On cmd.exe, use "set".

set RAILS_ENV=test
rake db:migrate

RE: RAILS_ENV is not recognized as an internal or external command, operable program or batch file - Added by Mark Young over 11 years ago

Thanks that works. I have followed the other instructions but cannot start the webrick server to test my installation, I get the error missing required gems: rdoc = 3.12.

After trying various things I go:
gem install json
gem install rdoc -data
gem install rdoc --version " =3.12"
And then I try "ruby script/server -p 3000" and still get the same result, even though I have installed the rdoc and json (required by rdoc). Is there some way I can bypass rdoc or is it needed?

As you can probably tell I am completely new to installing this so any help would be very grateful

RE: RAILS_ENV is not recognized as an internal or external command, operable program or batch file - Added by Toshi MARUYAMA over 11 years ago

You don't need rdoc on production environment.
See source:trunk/Gemfile#L70

For running webrick on production environment:
"ruby script/rails server -p 3000 -e production"

    (1-4/4)