[英]Ruby on rails git push heroku master issue with sqlite3
[英]Rails & Heroku Git Push Issue with Directory
這是我的目錄樹rails-tutorial / hello_app
我試圖將hello rails應用程序部署到heroku,但是由於heroku無法識別rails應用程序而失敗。 因此,我不得不將rails應用程序的內容移動到根文件夾(在本例中為rails-tutorial)。 然后它起作用了。
現在,我想創建一個新的應用程序。 當我嘗試在根文件夾中創建它時,顯示“無法在另一個目錄中初始化新的Rails應用程序,請首先更改為非Rails目錄”。
我該怎么辦? 如果我將所有內容推送到目錄中,heroku將無法將其識別為應用程序。
當您推送到heroku時,請確保您位於項目的根目錄,這里是hello_app
。
如果是rails-tutorial/hello_app
,則位於rails-tutorial
文件夾中,您必須移至hello_app
,只需在終端上鍵入cd hello_app
您不能在另一個內部創建新的Rails應用程序。 移出當前的Rails項目,然后創建其他項目。
在這種情況下。 我想,你應該將項目hello_app的所有內容,文件夾hello_app
下rails-tutorial
。 他們在rails-tutorial
下創建新的Rails應用示例new_app
rails-tutorial
|__ hello_app
|__app
|__bin
|__config
|__db
|__etc...
|__ new_app
|__app
|__bin
|__config
|__db
|__etc...
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.