Skip to content
This repository has been archived by the owner on Aug 30, 2021. It is now read-only.

Cloud 9 - c9 #4

Closed
cliffeby opened this issue Mar 3, 2014 · 5 comments
Closed

Cloud 9 - c9 #4

cliffeby opened this issue Mar 3, 2014 · 5 comments

Comments

@cliffeby
Copy link

cliffeby commented Mar 3, 2014

Deploying in the Cloud 9 IDE took some time, but I now have an the framework running. Here are some suggestions to others that want to use Cloud 9 for this MEANjs stack.

  1. I was unable to use the Cloud 9 download option for MEANjs on Github. Instead I copied the url and did a $ git clone url. The MEANjs always seemed to load fine, but the bower, grunt, and npm installs were often slow and created an incomplete install. Repeating the install never worked.
  2. When network speed (mine or c9?) was fast, I'd get a good install, but generally needed to do a npm bower update as recommended in the documentation.
  3. You create the Mongodb instance on c9 as follows:
    $ mkdir data
    $ echo 'mongod --bind_ip=$IP --dbpath=data --nojournal --rest "$@"' > mongod
    $ chmod a+x mongod
    and start it with a ./mongod (Note it's a dot/) I use a new terminal window (alt T) for the mongod instance.
  4. You have to change server.js from app.listen(config.port) to
    app.listen(process.env.PORT || 3000, process.env.IP || '0.0.0.0', function(){}
  5. grunt in the lower terminal panel should get you going.
@rschwabco
Copy link
Member

Thanks, @cliffeby. We'll add this to the docs.

@geekmj
Copy link

geekmj commented May 25, 2014

I did multiple unsuccessful try installing meanjs in c9 using yoman.

  1. npm install -g yo //Command run successfully
  2. npm install -g generator-meanjs //This also works fine.
  3. yo meanjs //Results: yo not able to find meanjs generator.

I tried the installation multiple times.

I had successfully installed meanjs on my local machine using yo generator.

@mastrolinux
Copy link

note, $IP does not work anymore, please use 127.0.0.1 instead of $IP.

@mastrolinux
Copy link

Another update,

everything works if you run:

$ mkdir /home/ubuntu/workspace/mongo 
$ mongod --dbpath /home/ubuntu/workspace/mongo --smallfiles --fork --logpath /home/ubuntu/workspace/mongo/mongod.log
$ grunt

@mhenke
Copy link

mhenke commented Mar 23, 2015

Key for me was comment 4 steps, then step 3 & 4 in the ticket. Also not using grunt to start the server but a run task using server.js

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants