Demo of deploying a Meteor.js application to Clever-Cloud
If you already have a Meteor.js application, all you have to do is:
- Add the
install.sh
file from this repo to your project and make it executablechmod a+x install.sh
- Add the
package.json
file from this repo to your project and customize it for your needs but be sure to leave thescripts
section untouched:"scripts": { "install": "./install.sh", "start": "node my_app/main.js" }
If you don't already have an app, feel free to fork this one to test !
- Signup on Clever-Cloud with Github
- Create a Node.js application
- Create a MongoDB addon and check its credentials:
Hostname
,Database
,User
andPassword
- Go to "Environment Variables" and add the
MONGO_URL
for your MongoDB addon:mongodb://<user>:<password>@<host>/<database>
- Add the remote Clever-Cloud repo to your project =>
git remote add clever git+ssh://[email protected]/<your-app-id>.git
- Push your code to Clever-Cloud =>
git push clever master
- Watch the logs and wait for your app to start
- Visit your application by clicking on the "Arrow" top-right button
- Have fun :)