Question

Install Parse server and Dashboard as Digital ocean app (Not on Droplet)

Hi I have using Heroku to run my Parse app and dashboard. Heroku is not accepting Indian credit card so not able to move new price based model.

i am trying yo setup my parse server using Heroku build pack as Digital Ocean App.

I want to run Dashboard also on the same instance which I believe can be done if i configure index.js for Parse-Dashboard. However, not able to make it work.

Out of https://lendabletest-bhevy.ondigitalocean.app/dashboard in browser is Cannot GET /dashboard my iOS app successfully accessing Parse server on Digital Ocean server.

Appreciate some help.

Below are parts of index.js, package.json and build log.

index.js for Parse Dashboard

var httpServerDash = require('http').createServer(dashApp);
httpServerDash.listen(4040, function() {
    console.log('Parse  Dashboard running on port 4040.');
});

package.json
{
  "name": "my app",
  "version": "1.4.0",
  "description": "",
  "main": "index.js",
  "repository": {
    "type": "git",
    "url": "https://github.com/myaccnt/parse-server.git"
  },
  "license": "MIT",
  "dependencies": {
    "express": "4.18.1",
    "parse-server": "5.4.0",
    "underscore":"*",
    "parse": "3.4.2",
    "cryptoutils":"*",
    "parse-server-api-mail-adapter": "^2.1.0",
    "mailgun.js": "git+https://github.com/mailgun/mailgun.js.git",
    "form-data": "^4.0.0",
    "parse-dashboard":"5.0.0"
  },
  "scripts": {
    "start": "node index.js"
  },
  "engines": {
    "node": "18.1.0",
    "npm": "8.8.0"
  }
}

below is build log from Digital Ocean

› configuring build-time app environment variables:
      MAILGUN_API_KEY DEBUG NODE_MODULES_CACHE FACEBOOK_SECRET DASHBOARD_APP_NAME NODE_VERBOSE APP_NAME MASTER_KEY TWITTER_CONSUMER_KEY GITHUB_TOKEN JAVASCRIPT_KEY SERVER_URL DATABASE_URI FACEBOOK_APP_ID APPLE_PUSH_TOPIC APP_ID APP_SUPPORT_EMAIL APPLE_PUSH_PASSPHRASE CLIENT_KEY PARSE_MOUNT VERBOSE IOS_BUNDLE_ID PARSE_SERVER_CLEANUP_INVALID_INSTALLATIONS VERBOSE_PARSE_SERVER_PUSH_ADAPTER TWITTER_CONSUMER_SECRET MAILGUN_DOMAIN MONGODB_URI
─────────── dockerfile build ───────────╼
 › using dockerfile /.app_platform_workspace/Dockerfile
 › using build context /.app_platform_workspace//

INFO[0000] Retrieving image manifest node:latest        
INFO[0000] Retrieving image library/node:latest from registry mirror <registry-uri-0> 
INFO[0000] Retrieving image manifest node:latest        
INFO[0000] Returning cached image manifest              
INFO[0000] Built cross stage deps: map[]                
INFO[0000] Retrieving image manifest node:latest        
INFO[0000] Returning cached image manifest              
INFO[0000] Retrieving image manifest node:latest        
INFO[0000] Returning cached image manifest              
INFO[0000] Executing 0 build triggers                   
INFO[0000] Building stage 'node:latest' [idx: '0', base-idx: '-1'] 
INFO[0000] Checking for cached layer <registry-uri-1> 
INFO[0001] Using caching version of cmd: RUN mkdir parse 
INFO[0001] Using files from context: [/.app_platform_workspace] 
INFO[0001] Checking for cached layer <registry-uri-2> 
INFO[0001] No cached layer found for cmd RUN npm install 
INFO[0001] Cmd: EXPOSE                                  
INFO[0001] Adding exposed port: 1337/tcp                
INFO[0001] Unpacking rootfs as cmd ADD . /parse requires it. 
INFO[0029] Initializing snapshotter ...                 
INFO[0029] Taking snapshot of full filesystem...        
INFO[0033] RUN mkdir parse                              
INFO[0033] Found cached layer, extracting to filesystem 
INFO[0033] Using files from context: [/.app_platform_workspace] 
INFO[0033] ADD . /parse                                 
INFO[0033] Taking snapshot of files...                  
INFO[0033] WORKDIR /parse                               
INFO[0033] Cmd: workdir                                 
INFO[0033] Changed working directory to /parse          
INFO[0033] No files changed in this command, skipping snapshotting. 
INFO[0033] RUN npm install                              
INFO[0034] Cmd: /bin/sh                                 
INFO[0034] Args: [-c npm install]                       
INFO[0034] Running: [/bin/sh -c npm install]            
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: 'myapp@1.4.0',
npm WARN EBADENGINE   required: { node: '18.1.0', npm: '8.8.0' },
npm WARN EBADENGINE   current: { node: 'v19.1.0', npm: '8.19.3' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: 'parse-server@6.0.0-alpha.10',
npm WARN EBADENGINE   required: { node: '>=14.21.0 <17 || >=18 <19' },
npm WARN EBADENGINE   current: { node: 'v19.1.0', npm: '8.19.3' }
npm WARN EBADENGINE }
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated request@2.88.0: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated subscriptions-transport-ws@0.11.0: The `subscriptions-transport-ws` package is no longer maintained. We ql-ws` instead. For help migrating Apollo software to `graphql-ws`, see https://www.apollographql.com/docs/apollo-server/ching-from-subscriptions-transport-ws    For general help using `graphql-ws`, see https://github.com/enisdenjo/graphql-ws/
npm WARN deprecated csurf@1.11.0: Please use another csrf package
npm WARN deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain known to be problematic.  See https://v8.dev/blog/math-random for details.

added 642 packages, and audited 643 packages in 2m

51 packages are looking for funding
  run `npm fund` for details

6 vulnerabilities (5 moderate, 1 high)

To address issues that do not require attention, run:
  npm audit fix

To address all issues possible (including breaking changes), run:
  npm audit fix --force

Some issues need review, and may require choosing
a different dependency.

Run `npm audit` for details.
npm notice 
npm notice New major version of npm available! 8.19.3 -> 9.1.2
npm notice Changelog: <https://github.com/npm/cli/releases/tag/v9.1.2>
npm notice Run `npm install -g npm@9.1.2` to update!
npm notice 
INFO[0139] Taking snapshot of files...                  
INFO[0149] Pushing layer <registry-uri-3> to cache now 
INFO[0149] Pushing image to <registry-uri-4> 
INFO[0149] ENV APP_ID setYourAppId                      
INFO[0149] No files changed in this command, skipping snapshotting. 
INFO[0149] ENV MASTER_KEY setYourMasterKey              
INFO[0149] No files changed in this command, skipping snapshotting. 
INFO[0149] ENV DATABASE_URI setMongoDBURI               
INFO[0149] No files changed in this command, skipping snapshotting. 
INFO[0149] EXPOSE 1337                                  
INFO[0149] Cmd: EXPOSE                                  
INFO[0149] Adding exposed port: 1337/tcp                
INFO[0149] No files changed in this command, skipping snapshotting. 
INFO[0149] CMD [ "npm", "start" ]                       
INFO[0149] No files changed in this command, skipping snapshotting. 
INFO[0202] Pushed <registry-uri-5> 
INFO[0202] Pushing image to <image-6> 
INFO[0203] Pushed <registry-uri-7> 

 ✔ built and uploaded app container image to DOCR
─────────────────────────────────────────╼

✔  build complete

Submit an answer
Answer a question...

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer