이 애플리케이션은 Rails Composer를 사용하여 생성되었으며 아직까지 개발 된 모델이 없습니다. 이전에 MySQL을 사용하면서 Postgres를 사용한 첫 번째 앱입니다. PG를 포트 5433을 듣고 있었고 응용 프로그램이 포트 5432에 연결하려고 시도했기 때문에 처음에는 실패했습니다. PG를 5432가 아니라 5433을 들으려고 변경했습니다. 그 시점에서 작업이 시작되었습니다. 로컬에서는 사용자를 등록하고 로그인하고 사용자를 나열 할 수 있습니다. 원래 코드를 수정하지 않았으므로 이제 그게 전부입니다.Rails4 Postgres App의 Heroku 푸시가 Ruby 앱을 컴파일하지 못했습니다.
때 I :
git push heroku master
나는이 메시지를 얻을 때까지 작동 :
Preparing app for Rails asset pipeline
Running: rake assets:precompile
rake aborted!
could not connect to server: Connection refused
Is the server running on host "127.0.0.1" and accepting
TCP/IP connections on port 5432?
... trace dump ...
!
! Precompiling assets failed.
!
! Push rejected, failed to compile Ruby app
To [email protected]:afternoon-spire-5707.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to '[email protected]:afternoon-spire-5707.git'
레이크 자산 : 사전 컴파일 로컬로 작동합니다
D:\BitNami\rubystack-2.0.0-11\projects\keyandcar>rake assets:precompile
I, [2014-03-01T01:06:01.849873 #28852] INFO -- : Writing D:/BitNami/rubystack-2.0.0-11/projects/keyandcar/public/assets
/application-2523f7871b800324a0dde9f6d33ef208.js
I, [2014-03-01T01:06:01.919922 #28852] INFO -- : Writing D:/BitNami/rubystack-2.0.0-11/projects/keyandcar/public/assets
/application-5d552226c05f29080fc1703e860817a5.css
I, [2014-03-01T01:06:01.936932 #28852] INFO -- : Writing D:/BitNami/rubystack-2.0.0-11/projects/keyandcar/public/assets
/bootstrap/glyphicons-halflings-regular-171c97066e4db52896df4e14c2905e8e.eot
I, [2014-03-01T01:06:01.949941 #28852] INFO -- : Writing D:/BitNami/rubystack-2.0.0-11/projects/keyandcar/public/assets
/bootstrap/glyphicons-halflings-regular-e327cd5918c69ba34cb1c92b9c7c424a.svg
I, [2014-03-01T01:06:01.981961 #28852] INFO -- : Writing D:/BitNami/rubystack-2.0.0-11/projects/keyandcar/public/assets
/bootstrap/glyphicons-halflings-regular-7206a6a5553d1b106dc988b6af7e29df.ttf
I, [2014-03-01T01:06:01.994971 #28852] INFO -- : Writing D:/BitNami/rubystack-2.0.0-11/projects/keyandcar/public/assets
/bootstrap/glyphicons-halflings-regular-a6d95d67a6db3f50ff64b2103e8c9348.woff
내가 설정이 추가를/응용 프로그램 .rb 효과 없음 :
config.assets.initialize_on_precompile = false # for Heroku
어디서 오류인지, 프로그램이 5432가 아닌 5433이나 무엇을 듣고있는 PG인지 여부는 확실하지 않습니다. 도움을
감사합니다 ... R_G
gemfile은 어떤 모양입니까? 이것은 문제의 단서가 될 수 있습니다. – JohnSalzarulo