Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Деплой на heroku #3

Open
Jacke opened this Issue · 1 comment

2 participants

Staninslav Sobolev Andrey Novikov
Staninslav Sobolev

Здравствуйте. При деплое вашего приложения на 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:in
run_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:in
require'
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:in
instance_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:in
start'
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:in
start'
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:in
block 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: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
'
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:in
eval'
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:in
require'
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 command
bundle 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:in
module: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:in
strptime'
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:in
block 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: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: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:in
block (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:in
instance_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:in
each'
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:in
run'
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:in
initialize!'
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:in
block 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:in
block 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:in
new'
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: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/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:in
app'
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:in
run_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:in
instance_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:in
parse_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:in
start'
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:in
start'
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:in
tap'
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=

Andrey Novikov
Owner

Здравствуйте!
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
Something went wrong with that request. Please try again.