Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running as a node module example code still requires - 'resource' folder, DB.connectionstring #75

Open
moorthi07 opened this issue Apr 20, 2017 · 0 comments

Comments

@moorthi07
Copy link
Member

moorthi07 commented Apr 20, 2017

Running as a node module example code still requires - 'resource' folder, DB.connectionstring

http://docs.deployd.com/docs/server/as-a-node-module.html
`

// hello.js
var deployd = require('deployd')
, options = {port: 3000};

var dpd = deployd(options);

dpd.listen();
Run this like any other node program.

node hello.js`

You can access 'localhost:3000/dashboard' - you will be prompted for a athenticate key prompt,

Use dpd showkey to get your app's key.
Authenticate with your deployd dashboard:

Error:
Error loading resources: Error: ENOENT: no such file or directory, scandir 'C:\IMwebsites\dpdtest\resources' at Error (native)

session:error Error removing old sessions: MongoError: not authorized on deployd to execu te command { delete: "sessions", deletes: [ { q: { $or: [ { lastActive: { $lt: 149012190157 4.0 } }, { lastActive: { $exists: false } } ] }, limit: 0 } ], ordered: true } +0ms

Update: You will need the following steps before you can run.

  1. Create 'resources' directory in the root directory
  2. Set up db.connectionstring in options
    At the first run dpd will look for these info.

FIX: You would need minimum options to be set,
`
//

hello.js
var deployd = require('deployd')
, options = {port: 3000,env: 'development',
db: {
connectionString: 'mongodb://localhost:27017/interface'

}
};

var dpd = deployd(options);

dpd.listen();
`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant