我想部署sails.js(版本0.9.7)應用Openshift但git push
後,我得到這個日誌:部署Sails.js上Openshift ...應用重啓一遍又一遍
debug: Lowering sails...
DEBUG: Starting child process with 'node app.js'
.
.
.
info: Server lifted in `/var/lib/openshift/525ccaba5973caa65100002b/app-root/runtime/repo`
info: To see your app, visit http://127.7.215.1:8080
info: To shut down Sails, press <CTRL> + C at any time.
.
.
debug: --------------------------------------------------------
debug: :: Tue Oct 15 2013 03:03:56 GMT-0400 (EDT)
debug:
debug: Environment : development
debug: Host : 127.7.215.1
debug: Port : 8080
debug: --------------------------------------------------------
.
.
error: Server doesn't seem to be starting.
error: Perhaps something else is already running on port 8080 with hostname 127.7.215.1?
.
.
debug: Lowering sails...
DEBUG: Starting child process with 'node app.js'
在從this thread on GitHub一些技巧和還檢查樣品config/local.js
https://gist.github.com/chrisaiv/5938158
試驗之後的任意組合的Openshift服務器剛剛重啓一遍又一遍。我還測試了8080,80,1337等幾個端口,我不認爲所有這些都很忙。我試圖運行node
app.js和應用程序令人驚訝的工程端口8080,但直到我嘗試訪問views/home/index
,可能是因爲從ssh
我沒有足夠的權利。
以防萬一,在這裏我有多麼config/local.js
文件看起來像:
module.exports = {
port: process.env.OPENSHIFT_NODEJS_PORT,
host: process.env.OPENSHIFT_NODEJS_IP
}
感謝您的任何意見;-)
我以前用過openshift。它只是一個麻煩......最好不要在這個網絡/雲解決方案上工作。 – Merlin