Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Деплой на heroku #3

Open
Jacke opened this issue Jul 20, 2012 · 1 comment
Open

Деплой на heroku #3

Jacke opened this issue Jul 20, 2012 · 1 comment

Comments

@Jacke
Copy link

Jacke commented Jul 20, 2012

Здравствуйте. При деплое вашего приложения на heroku появляется ошибка.

2012-07-20T22:54:15+00:00 app[web.1]: Exiting
2012-07-20T22:54:15+00:00 app[web.1]: from /usr/local/lib/ruby/1.9.1/date.rb:1046:in strptime' 2012-07-20T22:54:15+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.6/lib/rails/initializable.rb:54:inrun_initializers'
2012-07-20T22:54:15+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:236:in load_dependency' 2012-07-20T22:54:15+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:251:inrequire'
2012-07-20T22:54:15+00:00 app[web.1]: from /app/config.ru:4:in block in <main>' 2012-07-20T22:54:15+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/builder.rb:51:ininstance_eval'
2012-07-20T22:54:15+00:00 app[web.1]: from /app/config.ru:1:in new' 2012-07-20T22:54:15+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.6/lib/rails/commands/server.rb:70:instart'
2012-07-20T22:54:15+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/server.rb:301:in wrapped_app' 2012-07-20T22:54:15+00:00 app[web.1]: from /app/config.ru:1:in

'
2012-07-20T22:54:15+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/builder.rb:40:in parse_file' 2012-07-20T22:54:15+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/server.rb:252:instart'
2012-07-20T22:54:15+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.6/lib/rails/commands/server.rb:46:in app' 2012-07-20T22:54:15+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.6/lib/rails/commands.rb:55:inblock in <top (required)>'
2012-07-20T22:54:15+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/builder.rb:51:in initialize' 2012-07-20T22:54:15+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.6/lib/rails/commands.rb:50:in<top (required)>'
2012-07-20T22:54:15+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.6/lib/rails/commands.rb:50:in tap' 2012-07-20T22:54:15+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/builder.rb:40:ineval'
2012-07-20T22:54:15+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/server.rb:200:in app' 2012-07-20T22:54:15+00:00 app[web.1]: from script/rails:6:inrequire'
2012-07-20T22:54:15+00:00 app[web.1]: from script/rails:6:in <main>' 2012-07-20T22:54:16+00:00 heroku[web.1]: Process exited with status 1 2012-07-20T22:54:16+00:00 heroku[web.1]: State changed from starting to crashed 2012-07-20T22:54:16+00:00 heroku[web.1]: State changed from crashed to starting 2012-07-20T22:54:19+00:00 heroku[web.1]: Starting process with commandbundle exec rails server -p 56109 2012-07-20T22:54:29+00:00 app[web.1]: => Booting WEBrick 2012-07-20T22:54:29+00:00 app[web.1]: => Call with -d to detach 2012-07-20T22:54:29+00:00 app[web.1]: => Rails 3.2.6 application starting in production on http://0.0.0.0:56109 2012-07-20T22:54:29+00:00 app[web.1]: => Ctrl-C to shutdown server 2012-07-20T22:54:29+00:00 app[web.1]: fatal: Not a git repository (or any of the parent directories): .git 2012-07-20T22:54:29+00:00 app[web.1]: fatal: Not a git repository (or any of the parent directories): .git 2012-07-20T22:54:29+00:00 app[web.1]: from /app/config/initializers/version.rb:5:inmodule:Version'
2012-07-20T22:54:29+00:00 app[web.1]: from /app/config/initializers/version.rb:2:in <module:Taurus>' 2012-07-20T22:54:29+00:00 app[web.1]: Exiting 2012-07-20T22:54:29+00:00 app[web.1]: from /usr/local/lib/ruby/1.9.1/date.rb:1046:instrptime'
2012-07-20T22:54:29+00:00 app[web.1]: /usr/local/lib/ruby/1.9.1/date.rb:1022:in new_by_frags': invalid date (ArgumentError) 2012-07-20T22:54:29+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:245:inblock in load'
2012-07-20T22:54:29+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:245:in load' 2012-07-20T22:54:29+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2 .6/lib/active_support/dependencies.rb:245:inload'
2012-07-20T22:54:29+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:236:in load_dependency' 2012-07-20T22:54:29+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.6/lib/rails/engine.rb:588:inblock (2 levels) in class:Engine'
2012-07-20T22:54:29+00:00 app[web.1]: from /app/config/initializers/version.rb:1:in <top (required)>' 2012-07-20T22:54:29+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.6/lib/rails/initializable.rb:30:ininstance_exec'
2012-07-20T22:54:29+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.6/lib/rails/engine.rb:587:in each' 2012-07-20T22:54:29+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.6/lib/rails/initializable.rb:54:ineach'
2012-07-20T22:54:29+00:00 app[web.1]: from /app/config/environment.rb:5:in <top (required)>' 2012-07-20T22:54:29+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.6/lib/rails/initializable.rb:30:inrun'
2012-07-20T22:54:29+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.6/lib/rails/initializable.rb:55:in block in run_initializers' 2012-07-20T22:54:29+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.6/lib/rails/application.rb:136:ininitialize!'
2012-07-20T22:54:29+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.6/lib/rails/railtie/configurable.rb:30:in method_missing' 2012-07-20T22:54:29+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.6/lib/rails/engine.rb:587:inblock in class:Engine'
2012-07-20T22:54:29+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/builder.rb:51:in initialize' 2012-07-20T22:54:29+00:00 app[web.1]: from /app/config.ru:4:inblock in '
2012-07-20T22:54:29+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:251:in block in require' 2012-07-20T22:54:29+00:00 app[web.1]: from /app/config.ru:1:innew'
2012-07-20T22:54:29+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/builder.rb:40:in eval' 2012-07-20T22:54:29+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:251:inrequire'
2012-07-20T22:54:29+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/server.rb:200:in app' 2012-07-20T22:54:29+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.6/lib/rails/commands/server.rb:46:inapp'
2012-07-20T22:54:29+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/server.rb:301:in wrapped_app' 2012-07-20T22:54:29+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.6/lib/rails/initializable.rb:54:inrun_initializers'
2012-07-20T22:54:29+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:236:in load_dependency' 2012-07-20T22:54:29+00:00 app[web.1]: from script/rails:6:in'
2012-07-20T22:54:29+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:251:in require' 2012-07-20T22:54:29+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/builder.rb:51:ininstance_eval'
2012-07-20T22:54:29+00:00 app[web.1]: from script/rails:6:in require' 2012-07-20T22:54:29+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/builder.rb:40:inparse_file'
2012-07-20T22:54:29+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.6/lib/rails/commands.rb:55:in block in <top (required)>' 2012-07-20T22:54:29+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/server.rb:252:instart'
2012-07-20T22:54:29+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.6/lib/rails/commands.rb:50:in <top (required)>' 2012-07-20T22:54:29+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.6/lib/rails/commands/server.rb:70:instart'
2012-07-20T22:54:29+00:00 app[web.1]: from /app/config.ru:1:in <main>' 2012-07-20T22:54:29+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.6/lib/rails/commands.rb:50:intap'
2012-07-20T22:54:30+00:00 heroku[web.1]: Process exited with status 1
2012-07-20T22:54:30+00:00 heroku[web.1]: State changed from starting to crashed
2012-07-20T22:54:47+00:00 heroku[run.1]: Starting process with command bundle exec rake db:setup
2012-07-20T22:54:47+00:00 heroku[run.1]: Awaiting client
2012-07-20T22:54:48+00:00 heroku[run.1]: State changed from starting to up
2012-07-20T22:54:58+00:00 heroku[run.1]: Process exited with status 1
2012-07-20T22:54:58+00:00 heroku[run.1]: State changed from up to complete
2012-07-20T22:55:10+00:00 heroku[router]: Error H10 (App crashed) -> GET peaceful-reef-1889.herokuapp.com/ dyno= queue= wait= service= status=503 bytes=
2012-07-20T22:55:10+00:00 heroku[router]: Error H10 (App crashed) -> GET peaceful-reef-1889.herokuapp.com/favicon.ico dyno= queue= wait= service= status=503 bytes=
2012-07-20T22:56:58+00:00 heroku[router]: Error H10 (App crashed) -> GET peaceful-reef-1889.herokuapp.com/about dyno= queue= wait= service= status=503 bytes=
2012-07-20T22:58:22+00:00 heroku[run.1]: Starting process with command bundle exec rake db:push
2012-07-20T22:58:22+00:00 heroku[run.1]: Awaiting client
2012-07-20T22:58:22+00:00 heroku[run.1]: State changed from starting to up
2012-07-20T22:58:30+00:00 heroku[run.1]: Process exited with status 1
2012-07-20T22:58:30+00:00 heroku[run.1]: State changed from up to complete
2012-07-20T22:59:09+00:00 heroku[run.1]: Awaiting client
2012-07-20T22:59:09+00:00 heroku[run.1]: Starting process with command bundle exec rake db:setup
2012-07-20T22:59:09+00:00 heroku[run.1]: State changed from starting to up
2012-07-20T22:59:20+00:00 heroku[run.1]: State changed from up to complete
2012-07-20T22:59:20+00:00 heroku[run.1]: Process exited with status 1
2012-07-20T23:03:33+00:00 heroku[router]: Error H10 (App crashed) -> GET peaceful-reef-1889.herokuapp.com/ dyno= queue= wait= service= status=503 bytes=
2012-07-20T23:03:35+00:00 heroku[router]: Error H10 (App crashed) -> GET peaceful-reef-1889.herokuapp.com/favicon.ico dyno= queue= wait= service= status=503 bytes=

@Envek
Copy link
Owner

Envek commented Jul 21, 2012

Здравствуйте!

  1. Судя по логу ошибок, у вас ruby 1.9. На нём не работает (ещё не переводили). Используйте ree.
  2. Ещё у вас там есть ругань на git-репозиторий (точнее его отсутствие), т.к. я использую вот такую технику в config/initializers/version.rb. Замените вызовы команд константами или инициализируйте git-репозиторий с одним тэгом.

С хероку я дела не имел, так что даже и не знаю, что может быть ещё. Мы деплоим на физический сервер с помощью capistrano.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants