Reputation: 505
Cloud9 is the only online IDE recommended for Meteor in meteor.com. But the 'two clicks to awesome' guide is not applicable, because Meteor is not listed in workspace types any more. What's the best way to create a Meteor app on Cloud9?
Upvotes: 1
Views: 777
Reputation: 1749
Install Meteor after creating new workspace.
username:~/workspace $ curl https://install.meteor.com/ | sh
Create new app my-app.This will create a blank app.
username:~/workspace $ meteor create my-app
Change current directory to created app.
username:~/workspace $ cd app-name
Install node packages required for meteor app.
username:~/workspace/app-name $ meteor npm install
Run you meteor app using port option.
username:~/workspace/app-name $ meteor --port $IP:$PORT
First time it takes around 15 minutes to get up and running. After that it will run quickly every time. You need to use --port option specifically for Cloud9 as it does not support automatic ports.
Upvotes: 1
Reputation: 505
I tested the following procedure and it works:
curl https://install.meteor.com/ | sh
in command line to install Meteor.meteor create my_cool_app
. (Don't put ~/
before the app name.)cd/my_app
meteor --port $IP:$PORT
to start the sample app. (Without $IP:$PORT
it hangs). Make sure the app is working.meteor list
on your previous working directory.meteor add
and meteor remove
commands to add/remove the MDG packages. If you install 3rd party packages first, you'll get weird errors.meteor --port $IP:$PORT
to start your app. The first time it may take a few minutes to start the app but later it'll be a few seconds.Upvotes: 2
Reputation: 3578
It definitely can be done!
First you're going to create a blank workspace environment in Cloud9
Second you're going to install meteor with
curl https://install.meteor.com/ | sh
Then just create your project and run with Meteor!
Upvotes: 2