Are there 3 forms to invoke production, staging, etc in Ruby on Rails for rails server, rails console, and rake?

The forms I know of are:

For Rails 3.0:

for rails server:

rails server -e production

for rails console

rails console production

for rake

rake db:migrate RAILS_ENV=production

Is that it? I know for rails runner and rails dbconsole, it is -e production as well. Are there more forms and what are other ones that use -e vs just the name or needing RAILS_ENV?

As a sidenote, why so complicated; is it to increase

View Replies

Related to : Are there 3 forms to invoke production, staging, etc in Ruby on Rails for rails server, rails console, and rake?

Rails:: rake db:create does not return anything on Rails 3.0.3 and Ruby 1.9.2
Category : Programming Languages

I have following configuration:

Ruby version 1.9.2 (i386-mingw32)
RubyGems version 1.7.2
Rack version 1.2
Rails version 3.0.3
Active Record version 3.0.1
Action Pack version 3.0.3
Active Resource

View Replies

Ruby/Rails - delayed_job Rails.env is “development” when I'm in production
Category : Programming Languages

I'm running Ruby 1.9.2/Rails 3.0.9.

I am using the collective idea fork of delayed_job

I am starting delayed_job like so:
RAILS_ENV=production script/delayed_job start

It pulls jobs from my production database.

However, when proces

View Replies

部署ruby on rails 在市直缓存是出错in ruby on rails production
Category : Programming Languages
in ruby on rails production。I set the config.cache_classes = false is work well but set true,it doesn't work ,and error 500but i don't know why?

View Replies

Rails console won't load, “Could not find gem 'rails (= 3.0.0.beta3) ruby”
Category : Programming Languages

I typed in Rails console to begin working and received the error below:

MacBook-Pro:blog agreiner$ rails console
/Users/agreiner/.rvm/gems/ruby-1.9.3-p194/gems/bundler-1.1.3/lib/bundler/resolver.rb:287:in `resolve': Could not find gem 'rails (= 3.0.0.beta3) ruby' in the gems a

View Replies

when I run rails console in netbeans6.8(Ruby on Rails) then getting error?
Category : Programming Languages

when I run rails console in netbeans6.8(Ruby on Rails) then getting following error ?

'irb.bat' is not recognized as an internal or external command,
operable program or batch file.

what I need to do for this ?

View Replies

Routes.rb - from Rails 2.x to Rails 3.x “How to Create a Blog from Scratch Using Ruby on Rails” tutorial
Category : Programming Languages

I'am working on "How to Create a Blog from Scratch Using Ruby on Rails" from The tutorial was created for Rails 2.x. I try to get It working on Rails 3.x. . When I run server I and run localhost:3000 get some serious routing error:

Called from: C:/Ruby

View Replies

Rails 2.3 and thinking sphinx on staging server: production database not configured. why?
Category : Databases

I'm running Rails 2.3 and Thinking Sphinx 1.4.0. It's running on my development machine and it's deployed to a production server at EngineYard and working fine. At EY we also have a staging server where ts was running fine. Now it gives me an error when I try running:

> rake ts

View Replies

script/console won't work; reports “Missing the Rails gem. Please `gem install -v= rails`…” even though rails shows as installe
Category : Programming Languages

I'm trying to learn RoR, and running script/console fails, returning:

Loading development environment (Rails 2.3.5)
Missing the Rails gem. Please gem install -v= rails, update your RAILS_GEM_VERSION setting in config/environment.rb for the Rails version you do have

View Replies

Running rails server -e production on localhost with config.assets.compile = false breaks Rails Asset Pipeline
Category : Development Tools & Services

I am attempting to migrate our application to use the Asset Pipeline, so i have been testing my changes locally (using the built in Webrick server). My production.rb looks like this:

# Disable Rails's static asset server (Apache or nginx will already do this)

View Replies

Rails: rake db:migrate isn't output to script/server console window
Category : Programming Languages

i have two cmd consoles opened in Windows. One is running the "ruby script/server" the other i run a "rake db:migrate" command. But the server console doesn't output the log of the migration? Someone has an idea what's the reason?

View Replies

2012 / 2017 Copyrights BigHow , All Rights Reserved .