일단 spree (3.1)가 로컬에서 작동하면 다음은 heroku로 푸시됩니다. 수동으로 유사한 레일 명령 중 하나를 사용하여 설치 테이블을한다. 을 document에서 내가ActiveRecord :: StatementInvalid (PG :: UndefinedTable : ERROR : 관계 "spree_orders"가 존재하지 않습니다.
rails g spree:install --user_class=Spree::User
rails g spree:auth:install
rails g spree_gateway:install
내 첫 번째 질문을 실행하는 가정 내 솔루션은 이러한 명령을 사용
에게 Heroku를 위해 그 명령을 실행하는 방법입니다
heroku run rake spree:install --user_class=Spree::User
heroku run rake railties:install:migrations
heroku run rake db:migrate
heroku run rake db:seed
heroku run rake spree_sample:load
얹는? 헤로쿠에서 명령을 실행할 때 어떻게됩니까? 무슨 문제가있는 것 같습니까? – MarsAtomic
그것은 ActiveRecord :: StatementInvalid 내 문제를 해결했습니다. 그러나 아무도 왜 영웅을 위해 해야할지 언급하지 않았는지 궁금해합니다. –