voglio distribuire sails.js (versione 0.9.7) app per OpenShift ma dopo git push
ottengo questo registro:Deploy Sails.js su OpenShift ... app riavviare più e più
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'
seguito alcuni suggerimenti da this thread on GitHub e anche controllato il campione config/local.js
https://gist.github.com/chrisaiv/5938158
Dopo la prova di qualsiasi combinazione di server OpenShift è solo la reinserzione più e più volte. Ho anche testato diverse porte come 8080, 80, 1337, ... e non credo che siano tutte occupate. Ho provato a eseguire node
app.js e l'applicazione funziona sorprendentemente sulla porta 8080 ma solo fino a quando non provo ad accedere a views/home/index
, probabilmente perché da ssh
non ho abbastanza diritti.
Solo nel caso, ecco come il mio file config/local.js
assomiglia:
module.exports = {
port: process.env.OPENSHIFT_NODEJS_PORT,
host: process.env.OPENSHIFT_NODEJS_IP
}
grazie per qualsiasi consiglio ;-)
Ho usato openshift prima. È solo una seccatura ... è meglio non lavorare su quella soluzione web/cloud. – Merlin