วันจันทร์ที่ 23 พฤษภาคม พ.ศ. 2559

Heroku  deploy Parse-dashboard
Step 
  1. Login heroku
  2. Create New App
  3. ...
  4. settings->Reveal Config Vars  add PARSE_DASHBOARD_ALLOW_INSECURE_HTTP = 1
  5. download https://github.com/ParsePlatform/parse-dashboard to local add cd  parse-dashboard/Parse-Dashboard/public  run command npm install
  6. edit your .gitignore file and remove the following lines   (parse-dashboard/.gitignore)
bundles/
Parse-Dashboard/public/bundles/
Parse-Dashboard/parse-dashboard-config.json

   7. edit your parse-dashboard-config.json (parse-dashboard/Parse-Dashboard/)
                {
  "apps": [
    {
        "serverURL": "http://url-to-your-parse-server/parse", // If your Parse Server's endpoint is not at /parse, you need to replace /parse with the correct endpoint
        "appId": "your-app-Id",
        "masterKey": "your-master-key",
        "appName": "your-app-name"
    }
  ],
  "users": [
    {
      "user":"username1", // Used to log in to your Parse Dashboard
      "pass":"password1"
    }
  ]
}

  1. open/edit Procfile add web: bin/parse-dashboard --config Parse-Dashboard/parse-dashboard-config.json --allowInsecureHTTP

   9. deploy to heroku

ไม่มีความคิดเห็น:

แสดงความคิดเห็น