parse-server icon indicating copy to clipboard operation
parse-server copied to clipboard

Parse Server on AWS Elastic Beanstalk

Open json-park opened this issue 10 years ago • 6 comments

Hello~

I was set up Parse Server on AWS Elastic Beanstalk below guide link

http://mobile.awsblog.com/post/TxCD57GZLM2JR/How-to-set-up-Parse-Server-on-AWS-using-AWS-Elastic-Beanstalk

But This is for parse-server-example code.

When do i get official parse-server code on AWS Elastic Beanstalk?

Thank you

json-park avatar Feb 13 '16 06:02 json-park

The parse-server-example has a dependency on parse-server (https://github.com/ParsePlatform/parse-server-example/blob/master/package.json#L15). The index.js (https://github.com/ParsePlatform/parse-server-example/blob/master/index.js) instantiates the Parse server.

rogerhu avatar Feb 13 '16 08:02 rogerhu

So I am not need to install the parse-server on AWS Elastic Beanstalk? Using only the parse-server-example Can I use all the features?

json-park avatar Feb 13 '16 09:02 json-park

It gets installed when you do npm install, which is what the one-step deploy will do for you (https://github.com/ParsePlatform/parse-server-example/blob/master/.ebextensions/app.config). You do not need to install parse-server yourself.

rogerhu avatar Feb 13 '16 09:02 rogerhu

Oh I see. Thank you @rogerhu :)

json-park avatar Feb 13 '16 09:02 json-park

@json-park I was set up Parse Server on AWS Elastic Beanstalk.

But I had some issues.

Please read this comment carefully.

  1. click "Deploy to AWS" on http://mobile.awsblog.com/post/TxCD57GZLM2JR/How-to-set-up-Parse-Server-on-AWS-using-AWS-Elastic-Beanstalk
  2. select "node.js"
  3. select "Upload your own code (advanced configuration)"
  4. upload zip file untitled copy
  5. click "configure details"
  6. click "create app" untitled copy
  7. waiting
  8. set Configuration(APP_ID, MASTER_KEY ...) untitled copy
  9. click "apply"
  10. when I go to server URL, That says "502 Bad Gateway nginx/1.8.0" untitled copy untitled copy

So I can't test parse-server on my app.

index.js is following:

var api = new ParseServer({

databaseURI: databaseUri || 'mongodb://...', cloud: process.env.CLOUD_CODE_MAIN || __dirname + '/cloud/main.js', appId: process.env.APP_ID || '5...h', masterKey: process.env.MASTER_KEY || 'd...5', fileKey: process.env.FILE_KEY || '3...5'

});

I add my cloud code in main.js.

Now, what can I do? or what should I do?

Please help me.

Thanks,

topwebtek7 avatar Feb 18 '16 16:02 topwebtek7

There may be some answers in the following issue thread: https://github.com/ParsePlatform/parse-server/issues/916

mmislam101 avatar Jun 03 '16 02:06 mmislam101