2015-09-05 58 views
0

好吧,我使用Openshift託管我的項目,並且我昨天剛剛在那裏創建了一個新帳戶。昨天我還在我的`git-bash'控制檯中使用了命令yo angular-fullstack:openshift來創建應用程序,並將我的項目推送到它。工作很好。使用喲angular-fullstack:openshift會給出錯誤'ssh:無法解析主機名'

然後我刪除了Openshift上的應用程序,今天我想再次上傳它。我運行相同的程序和相同的命令。但是現在我收到一個錯誤,告訴我主機名不存在。這是我能解決的問題嗎?還是那些「以後再試」的問題之一?

的錯誤

Uploading your initial application code. 
This may take several minutes depending on your connection speed... 
× ssh: Could not resolve hostname unityacademy-academiaunitate.rhcloud.com: no address associated with name 

× fatal: Could not read from remote repository. 

Please make sure you have the correct access rights 
and the repository exists. 

回答

2

刪除您的 'DIST' 文件夾和重做grunt build生成一個新的 'DIST' 文件夾。這將確保您的'dist'文件夾乾淨且不會干擾您的應用程序的創建過程。確保刪除舊應用OpenShift並再次執行yo angular-fullstack:openshift命令。

這應該可以做到。