0

我尝试着手使用Rails 3.2.6和Heroku。我的红宝石版本是1.9.3,我的database.yml的是这样的:部署rails应用程序时,在工头启动时出现错误

development: 
    adapter: postgresql 
    encoding: utf8 
    reconnect: false 
    database: iscubeonror_development 
    pool: 5 
    username: rails 
    password: rails 
    host: localhost 

test: 
    adapter: postgresql 
    encoding: utf8 
    reconnect: false 
    database: iscubeonror_test 
    pool: 5 
    username: root 
    password: 
    host: localhost 

production: 
    adapter: postgresql 
    encoding: utf8 
    reconnect: false 
    database: iscubeonror_production 
    pool: 5 
    username: root 
    password: 
    host: localhost 

我procfile是

web: bundle exec rails server thin -p $PORT -e $RACK_ENV 

我有production.rb,在development.rb和test.rb这样的:

config.active_support.deprecation = :notify 
config.active_support.deprecation = :stderr 
config.active_support.deprecation = :stderr 

Finaly我使用Windows和我的Gemfile是

gem 'rails', '3.2.6' 
gem 'pg' 
gem 'thin' 
gem "foreman" 

当终端Heroku的日志写它给了我warnig作为

2012-11-20T18:05:32+00:00 app[web.1]: DEPRECATION WARNING: You have Rails 2.3-st 
yle plugins in vendor/plugins! Support for these plugins will be removed in Rail 
s 4.0. Move them out and bundle them in your Gemfile, or fold them in to your ap 
p as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes f 
or more on this: http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been 
-released. (called from <top (required)> at /app/config/environment.rb:5) 
2012-11-20T18:05:32+00:00 app[web.1]: DEPRECATION WARNING: You have Rails 2.3-st 
yle plugins in vendor/plugins! Support for these plugins will be removed in Rail 
s 4.0. Move them out and bundle them in your Gemfile, or fold them in to your ap 
p as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes f 
or more on this: http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been 
-released. (called from <top (required)> at /app/config/environment.rb:5) 
2012-11-20T18:05:35+00:00 app[web.1]: => Ctrl-C to shutdown server 
2012-11-20T18:05:35+00:00 app[web.1]: => Booting Thin 
2012-11-20T18:05:35+00:00 app[web.1]: => Rails 3.2.6 application starting in pro 
duction on http://0.0.0.0:52284 
2012-11-20T18:05:35+00:00 app[web.1]: => Call with -d to detach 

当终端工头写开始它给了我作为

D:\Kalpesh\web\iscubeonror> foreman start 
19:37:27 web.1 | started with pid 3868 
19:38:18 web.1 | You did not specify how you would like Rails to report depreca 
tion notices for your $RACK_ENV environment, please set config.active_support.de 
precation to :log, :notify or :stderr at config/environments/$RACK_ENV.rb 

因为这是我的瘦服务器未启动我该怎么办
虽然我按照从 https://devcenter.heroku.com/articles/rails3#deploy-your-application-to-heroku PLZ紧急回复我

+0

可能重复[部署过程中的错误在Heroku上轨在福尔曼启动应用程序] (http://stackoverflow.com/questions/13486307/error-during-deploy-rails-application-on-heroku-in-forman-start) – Lichtamberg

+0

请添加您的procfile – Lichtamberg

+0

我没有使用在应用程序中添加procfile。 – imKalpesh

回答

0

你应该阅读:

You did not specify how you would like Rails to report depreca 
tion notices for your $RACK_ENV environment, please set config.active_support.de 
precation to :log, :notify or :stderr at config/environments/$RACK_ENV.rb 
+0

你应该阅读这个问题;)报价: “我对production.rb,在development.rb和测试。 rb这个: config.active_support.deprecation =:通知 config.active_support.deprecation =:stderr config.active_support.deprecation =:stderr“ – mkk

0

我认为你需要定义一些ENV中.ENV瓦尔为:

RACK_ENV=development 
PORT=3000 
相关问题