New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nodejitsu deploy issue #455
Comments
Bingo, caught the log. I changed from port 80 to port 1337, but the error was the same when it was still on 80.
Next up: changing back to port 80 and trying node 10.x on nodejitsu (unsure if they support it yet). EDIT: Eeeh, guess they still don't support 0.10.x. |
Found an unanswered duplicate issue up on google groups and a gist from another user. |
This is strange, i know that's all i had to change when i created that documentation, perhaps they made a change on their end. I wish i could help more, but my account doesn't have a subscription, and my free trial ran out. I'll see if i can create a new account and test. |
Much appreciated! |
Can you share your package.json and config/application.js with me please. |
package.json
config/application.js
|
Yup, definately don't see anything funky there that should cause it to fail. Are you by chance already running another nodejitsu instance on the account? But you said you changed the port and still had the issue. Hum. Try changing environment to production, although this shouldn't effect anything, i'm just curious. |
Also, switch over to verbose output and maybe it will toss something useful out for us to see. |
OK, i've gotten my app to build on nodejitsu by following the guide. i didn't do anything outside of the guide. here is my config/application.js module.exports = {
// Name of the application (used as default <title>)
appName: 'Sails Application',
// Port this Sails application will live on
port: 80,
host: 'dcbartlett-test.jit.su',
// The environment the app is deployed in
// (`development` or `production`)
//
// In `production` mode, all css and js are bundled up and minified
// And your views and templates are cached in-memory. Gzip is also used.
// The downside? Harder to debug, and the server takes longer to start.
environment: 'development',
// Logger
// Valid `level` configs:
//
// - error
// - warn
// - debug
// - info
// - verbose
//
log: {
level: 'info'
}
}; This is the package.json that jitsu deploy created.
|
ok, i even did a complete fresh install of sails from npm. The only difference i see between your code and mine is that your package.json uses
whereas mine uses
In fact, when i changed mine to 'sails lift' to test if it was that, nodejitsu gave me this.
So, in short, i'm not really sure whats going on on your end. |
Started a fesh intance, noticed that I skipped a step. Forgot to edit the // Local configuration
//
// Included in the .gitignore by default,
// this is where you include configuration overrides for your local system
// or for a production deployment.
//
// For example, to use port 80 on the local machine, override the `port` config
module.exports.port = 80;
module.exports.environment = 'production'; All is well now, thanks! |
technically for deploying to nodejitsu, you don't need to do all of the deployment guide. Only the part in the nodejitsu section, but i'm glad its working for you now. |
Yeah, apparently I wasn't the only one that made a mistake deploying. I'll try to see if I can git diff the changes. |
When removing from config/application.js:
I recreated the exact same error. Cheers! |
Yeah, Host is needed as it locks the sails host to the host name that nodejitsu will use for the site. |
Everything's working correctly locally; I set my app to run on port 80 (according to the guide), defined the subdomains properly but when deploying to nodejitsu it doesn't run.
I used
sails new appname --template=jade
to init my configuration. I only changed the variables described in the guide before trying to deploy.I also remember getting something from the log that port 80 was already in use. Will try to change ports, see if that fixes my issues. Possibly socket.io conflicting with the server?
Note: the reason I didn't paste the log with the port 80 failure is because I cannot access my logs on nodejitsu anymore, if I somehow do get through I'll add it.
The text was updated successfully, but these errors were encountered: