diff --git a/README.md b/README.md index e861c9c1fc..b11d952c4f 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,8 @@ You can also manage apps that on Parse.com from the same dashboard. In your conf "masterKey": "myMasterKey", "javascriptKey": "myJavascriptKey", "restKey": "myRestKey", - "appName": "My Parse.Com App" + "appName": "My Parse.Com App", + "production": true }, { "serverURL": "http://localhost:1337/parse", @@ -62,7 +63,7 @@ You can also manage apps that on Parse.com from the same dashboard. In your conf ## Other options -You can set `appNameForURL` in the config file for each app to control the url of your app within the dashboard. This can make it easier to use bookmarks or share links on your dashboard. +You can set `appNameForURL` in the config file for each app to control the url of your app within the dashboard. This can make it easier to use bookmarks or share links on your dashboard. To change the app to production, simply set `production` to `true` in your config file. Defaults to false if not specified. ## Deploying the dashboard diff --git a/src/dashboard/Apps/AppsIndex.react.js b/src/dashboard/Apps/AppsIndex.react.js index 1749e0aa8e..5cde6dd26b 100644 --- a/src/dashboard/Apps/AppsIndex.react.js +++ b/src/dashboard/Apps/AppsIndex.react.js @@ -20,6 +20,7 @@ import React from 'react'; import styles from 'dashboard/Apps/AppsIndex.scss'; import { center } from 'stylesheets/base.scss'; import { Link } from 'react-router'; +import AppBadge from 'components/AppBadge/AppBadge.react'; function dash(value, content) { if (value === undefined) { @@ -81,6 +82,7 @@ let AppCard = ({ {versionMessage} + diff --git a/src/lib/ParseApp.js b/src/lib/ParseApp.js index ce791a7833..9d503f6c8f 100644 --- a/src/lib/ParseApp.js +++ b/src/lib/ParseApp.js @@ -37,6 +37,7 @@ export default class ParseApp { apiKey, serverURL, serverInfo, + production, ...params, }) { this.name = appName; @@ -54,7 +55,7 @@ export default class ParseApp { this.windowsKey = windowsKey; this.webhookKey = webhookKey; this.fileKey = apiKey; - this.production = !!params['is_production?']; + this.production = production; this.serverURL = serverURL; this.serverInfo = serverInfo;