2017-12-30 30 views
0

저는 일반적으로 개발이 새롭고 Michael Hartl의 레일 서적을 따릅니다. 내 '장난감 응용 프로그램'은 내 로컬 서버에서 완벽하게 작동하지만 어떤 이유로 Heroku를 통해 배포하려고 할 때 오류 코드 H10이 발생하고 설명이 '응용 프로그램이 손상되었습니다.'Ruboku on rail 앱이 Heroku에 배치되어 있지 않습니다.

이 문제를 해결하기 위해 무엇을해야할지 모르겠으며 포럼 전체에서 비슷한 질문을 여러 번 들었지만 그 중 아무 답변도 저에게 효과가없는 것 같습니다. 처음에 배포하려고 할 때 "거부 된"메시지가 표시되었지만 번들 업데이트를 실행 한 후에 모든 것이 완벽하게 처리 된 것처럼 보였습니다. 단, 나는 heroku를 통해 앱을 볼 수 없습니다.

이 문제를 해결하는 방법에 대한 제안 사항이 있으십니까?

Here's the full build-log from the deployment: 

-----> Ruby app detected 
-----> Compiling Ruby/Rails 
-----> Using Ruby version: ruby-2.3.4 
-----> Installing dependencies using bundler 1.15.2 
     Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment 
     Warning: the running version of Bundler (1.15.2) is older than the version that created the lockfile (1.16.1). We suggest you upgrade to the latest version of Bundler by running `gem install bundler`. 
     Fetching gem metadata from https://rubygems.org/......... 
     Fetching version metadata from https://rubygems.org/.. 
     Fetching dependency metadata from https://rubygems.org/. 
     Using rake 12.3.0 
     Using concurrent-ruby 1.0.5 
     Using minitest 5.10.3 
     Using thread_safe 0.3.6 
     Using builder 3.2.3 
     Using erubi 1.7.0 
     Using mini_portile2 2.3.0 
     Using crass 1.0.3 
     Using rack 2.0.3 
     Using nio4r 2.2.0 
     Using websocket-extensions 0.1.3 
     Using mini_mime 1.0.0 
     Using arel 8.0.0 
     Using bundler 1.15.2 
     Using coffee-script-source 1.12.2 
     Using execjs 2.7.0 
     Using method_source 0.9.0 
     Using thor 0.20.0 
     Using ffi 1.9.18 
     Using multi_json 1.12.2 
     Using pg 0.21.0 
     Using puma 3.11.0 
     Using rb-fsevent 0.10.2 
     Using tilt 2.0.8 
     Using turbolinks-source 5.0.3 
     Using i18n 0.9.1 
     Using tzinfo 1.2.4 
     Using nokogiri 1.8.1 
     Using websocket-driver 0.6.5 
     Using mail 2.7.0 
     Using coffee-script 2.4.1 
     Using uglifier 4.1.2 
     Using rb-inotify 0.9.10 
     Using turbolinks 5.0.1 
     Using activesupport 5.1.4 
     Using loofah 2.1.1 
     Using rack-test 0.8.2 
     Using sprockets 3.7.1 
     Using sass-listen 4.0.0 
     Using rails-html-sanitizer 1.0.3 
     Using sass 3.5.4 
     Using rails-dom-testing 2.0.3 
     Using globalid 0.4.1 
     Using activemodel 5.1.4 
     Using jbuilder 2.7.0 
     Using actionview 5.1.4 
     Using activejob 5.1.4 
     Using activerecord 5.1.4 
     Using actionpack 5.1.4 
     Using actioncable 5.1.4 
     Using actionmailer 5.1.4 
     Using railties 5.1.4 
     Using sprockets-rails 3.2.1 
     Using coffee-rails 4.2.2 
     Using jquery-rails 4.3.1 
     Using rails 5.1.4 
     Using sass-rails 5.0.7 
     Bundle complete! 18 Gemfile dependencies, 57 gems now installed. 
     Gems in the groups development and test were not installed. 
     Bundled gems are installed into ./vendor/bundle. 
     Bundle completed (2.73s) 
     Cleaning up the bundler cache. 
     Warning: the running version of Bundler (1.15.2) is older than the version that created the lockfile (1.16.1). We suggest you upgrade to the latest version of Bundler by running `gem install bundler`. 
     The latest bundler is 1.16.1, but you are currently running 1.15.2. 
     To update, run `gem install bundler` 
-----> Installing node-v6.11.1-linux-x64 
-----> Detecting rake tasks 
-----> Preparing app for Rails asset pipeline 
     Running: rake assets:precompile 
     Yarn executable was not detected in the system. 
     Download Yarn at https://yarnpkg.com/en/docs/install 
     Asset precompilation completed (1.54s) 
     Cleaning assets 
     Running: rake assets:clean 
###### WARNING: 
     You have not declared a Ruby version in your Gemfile. 
     To set your Ruby version add this line to your Gemfile: 
     ruby '2.3.4' 
     # See https://devcenter.heroku.com/articles/ruby-versions for more information. 
###### WARNING: 
     No Procfile detected, using the default web server. 
     We recommend explicitly declaring how to boot your server process via a Procfile. 
     https://devcenter.heroku.com/articles/ruby-default-web-server 
-----> Discovering process types 
     Procfile declares types  -> (none) 
     Default types for buildpack -> console, rake, web, worker 
-----> Compressing... 
     Done: 37.3M 
-----> Launching... 
     Released v11 
     https://still-everglades-21863.herokuapp.com/ deployed to Heroku 
+0

배포에서 전체 빌드 로그를 게시 할 수 있습니까? – inveterateliterate

+0

앱에 대한 heroku의 로그를 확인 했습니까? 명령 줄 도구를 사용하여 로그를 검색 할 수 있습니다 (https://devcenter.heroku.com/articles/logging#log-retrieval). –

+0

전체 빌드 로그를 포함하도록 질문을 편집했습니다. Heroku의 로그가 응용 프로그램이 손상된 메시지를 반환합니다. 오류 코드 H10 –

답변

0

SQLite는 파일에 데이터를 저장합니다. Heroku는 사용자 파일 저장을 허용하지 않으므로 Heroku에서 SQLite를 사용할 수 없습니다. 대신 PostgreSQL 또는 MySQL과 같은 다른 데이터베이스로 전환해야합니다. Here 세부 정보를 찾을 수 있습니다.

+0

나는 그 모든 단계를 밟았으며 지금 "git push heroku"를 실행하면 잘 처리되지만 "heroku rails db : migrate" "PG :: ConnectionBad : 서버에 연결할 수 없습니다 : 연결이 거부되었습니다. \t 서버가"localhost "(127.0.0.1) 호스트에서 실행되고 포트 5432에서 \t TCP/IP 연결을 허용합니까?"라는 메시지가 나타납니다. –

+0

데이터베이스가 아직 영웅으로 만들어지지 않았던 것 같습니다. 데이터베이스를 만든 후에는 모든 것이 잘 동작했습니다. 그런 멍청한 놈 한테 미안해. 도와 주셔서 감사합니다! –

관련 문제