From 0bf364dbb284b88b74d2cd09cc528d6d63442b49 Mon Sep 17 00:00:00 2001 From: Ghalleb Date: Fri, 22 Sep 2017 06:52:34 +0700 Subject: [PATCH] feat(readme): Deploy to Heroku button (#1854) Add a "Deploy to Heroku" button on README.MD --- README.md | 9 ++++++++- app.json | 29 +++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 app.json diff --git a/README.md b/README.md index 92cedc08..6aa20839 100644 --- a/README.md +++ b/README.md @@ -211,6 +211,14 @@ $ docker run -p 27017:27017 -d --name db mongo $ docker run -p 3000:3000 --link db:db_1 mean ``` +## Deploying to PAAS + +### Deploying MEANJS To Heroku + +By clicking the button below you can signup for Heroku and deploy a working copy of MEANJS to the cloud without having to do the steps above. + +[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy) + ### Amazon S3 configuration To save the profile images to S3, simply set those environment variables: @@ -219,7 +227,6 @@ S3_BUCKET: the name of the bucket where the images will be saved S3_ACCESS_KEY_ID: Your S3 access key S3_SECRET_ACCESS_KEY: Your S3 access key password - ## Getting Started With MEAN.JS You have your application running, but there is a lot of stuff to understand. We recommend you go over the [Official Documentation](http://meanjs.org/docs.html). In the docs we'll try to explain both general concepts of MEAN components and give you some guidelines to help you improve your development process. We tried covering as many aspects as possible, and will keep it updated by your request. You can also help us develop and improve the documentation by checking out the *gh-pages* branch of this repository. diff --git a/app.json b/app.json new file mode 100644 index 00000000..884c5797 --- /dev/null +++ b/app.json @@ -0,0 +1,29 @@ +{ + "name": "meanjs", + "description": "Full-Stack JavaScript with MongoDB, Express, AngularJS, and Node.js", + "repository": "https://github.com/meanjs/mean", + "logo": "http://meanjs.org/img/logo-small.png", + "keywords": [ + "mongodb", + "express", + "angularjs", + "node.js", + "mongoose", + "passport" + ], + "addons": [ + { + "plan": "mongolab:sandbox" + }, + { + "plan": "papertrail:choklad" + } + ], + "env": { + "NPM_CONFIG_PRODUCTION": "true", + "NPM_CONFIG_LOGLEVEL": "error", + "NODE_ENV": "production", + "NODE_VERBOSE": "false" + } +} +}