maned / goblin

A Content Management System Built in Pure Javascript
http://goblin.jit.su/
19 stars 13 forks source link

Using Cloud9 IDE with Goblin #65

Closed Zyggyrat closed 10 years ago

Zyggyrat commented 10 years ago

I set up and ran Goblin with the Cloud9 IDE. It's actually pretty easy, but there was one issue I had to resolve when running the server: Configuring the port based on an environment variable. To do this, you have to set the port in the config.js like this:

// What Port you want goblin deployed on config.desiredPort = process.env.PORT

Then, when you use the Run function on the index.js, the selected port is 8080, which makes it work with the Cloud9 default port for a node app.

I'm listing this as an issue solely because I think it would make a good addition to the README.md for anyone that wants to use the Cloud9 IDE, since it's really well set up for node.js/git projects, and it means you can code wherever you have a browser!

PunkChameleon commented 10 years ago

This sounds awesome! I'm glad to hear it works well, and thanks for helping figure it out.

Would you want to submit a pull request with an added section to the README.md about this? I think it's a great thing to add and would love to get you into the contributors list.

Thanks again!