Skip to content

Commit

Permalink
Add Scalingo one click deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
whollacsek committed Feb 5, 2016
1 parent 1d4db3c commit 0a912dc
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,21 @@ Read the full server guide here: https://parse.com/docs/server/guide
A detailed tutorial is available here:
[Azure welcomes Parse developers](https://azure.microsoft.com/en-us/blog/azure-welcomes-parse-developers/)

### Getting Started With Scalingo

#### With the Scalingo button

[![Deploy to Scalingo](https://cdn.scalingo.com/deploy/button.svg)](https://my.scalingo.com/deploy)

#### Without it

* Clone the repo and change directory to it
* Log in with the [Scalingo CLI](http://cli.scalingo.com/) and create an app: `scalingo create my-parse`
* Use the [Scalingo MongoDB addon](https://scalingo.com/addons/scalingo-mongodb): `scalingo addons-add scalingo-mongodb free`
* Setup MongoDB connection string: `scalingo env-set DATABASE_URI='$SCALINGO_MONGO_URL'`
* By default it will use a path of /parse for the API routes. To change this, or use older client SDKs, run `scalingo env-set PARSE_MOUNT=/1`
* Deploy it with: `git push scalingo master`

### Using it

You can use the REST API, the JavaScript SDK, and any of our open-source SDKs:
Expand Down
25 changes: 25 additions & 0 deletions scalingo.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"name": "Parse Server Example",
"description": "An example Parse API server using the parse-server module",
"repository": "https://github.com/ParsePlatform/parse-server-example",
"logo": "https://avatars0.githubusercontent.com/u/1294580?v=3&s=200",
"env": {
"PARSE_MOUNT": {
"description": "Configure Parse API route.",
"value": "/parse"
},
"APP_ID": {
"description": "A unique identifier for your app.",
"value": ""
},
"MASTER_KEY": {
"description": "A key that overrides all permissions. Keep this secret.",
"value": ""
},
"DATABASE_URI": {
"description": "Connection string for your database.",
"value": "$SCALINGO_MONGO_URL"
}
},
"addons": ["scalingo-mongodb"]
}

0 comments on commit 0a912dc

Please sign in to comment.