node.jscloud9-idec9.ioadonis.js

Running AdonisJS on C9.io


I'm trying to create a new Node.JS app using the Adonis framework. I'm using c9.io as my IDE.

I've succesfully installed everything and created a new project. But when I run it (using npm run dev) c9.io keeps showing me the "No application seems to be running here!" message.

The .env file is set for port 3333 for default. But I also tried changing it to 8080, and nothing changed.

Anyone managed to run AdonisJS on c9.io before? Thank you!


Solution

  • Make sure you are running the app on 0.0.0.0, not localhost. Localhost won't work on Cloud9 so you'll need to use 0.0.0.0 or process.env.IP (which will usually be the same thing).