-
Notifications
You must be signed in to change notification settings - Fork 182
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
Deployment in Heroku #55
Comments
skynet uses elasticsearch currently for logging events. Do you have elasticsearch installed in your heroku instance? |
Hi, kmariano Thank you for your guideline |
You should be able to remove the elasticsearch section from the config.js file to suppress the elastic search logging on the platform. Could you provide us with a better stack trace? There are no skynet-related errors in your output. Thanks, |
Hi, Chris One thing important, I'm using C9, in C9 I can run your app correctly, but when I try to deploy in heroku this message appear also: So in this moment I don't know where is the problem, in heroku or in the repo... |
It sounds like C9 may be modifying files prior to your deployment to Heroku. #notsure Heroku also does not allow local file access. You will need to turn off logging in the config.js by setting log: false More error logs would help us... |
More tracks: Your code is running at 'https://skynet-c9-syccon.c9.io'. |
Heroku chooses random ports to assign for your app. You'll need to modify SkyNet to use Heroku's environment port variable. |
Hi, thank you for your help , I change the port and host by a variable ('process.env.PORT' , 'process.env.IP'), in server.js file: var mqttclient = mqtt.createClient(process.env.PORT, process.env.IP, mqttsettings); But C9 display this errors :( Running Node Process |
Also in Heroku when I try to run the app , log file display me this: |
It looks like you may have missed the environment variables on restify for http. |
Since Heroku probably only gives your app 1 port, you may need to restrict skynet to 1 protocol (maybe http which includes websockets) try also disabling MQTT and coap after you make your environment variable change for restify. |
Hi, Chris |
I'm convinced that you can get SkyNet to run on Heroku by limiting the install to 1 port running HTTP and WebSockets. I agree that it's probably not the best option. We run skynet.im cloud on Amazon AWS; however, I have run it on Digital Ocean as well - basically another server with VPS or SSH access allowing you to run under multiple ports. I have even run SkyNet on my Raspberry Pi :) |
Our config.js has been updated to support environment variables on all parameters. This should be more friendly with Heroku; however, you will still only be able to run Meshblu on 1 port for HTTP and WebSockets. MQTT and CoAP require additional ports and Heroku only allows 1 per app. You could simply disable MQTT and CoAP by leaving their environment variables out of the deploy. |
Thank You Chris. |
Hi,
I try to deploy skynet in heroku , I install Mongo DB and redis, I update de config file and deploy but when I try to run the app , the app crash, and this message appear:
at=error code=H10 desc="App crashed" method=GET path=/ host=sycconet.herokuapp.com request_id=3d259ca6-d52e-4ac8-a894-144846c46b1f fwd="63.70.73.50" dyno= connect= service= status=503 bytes=
Do you know what is the problem??
The text was updated successfully, but these errors were encountered: