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

Updating Parse on AWS

Open pushtek opened this issue 10 years ago • 40 comments

How should I go about updating Parse on AWS? Thanks

pushtek avatar Mar 06 '16 18:03 pushtek

The details will depend on your exact setup, but generally you will need to clone your server project, update the package.json file to use the latest version of Parse Server, and the push the project.

drew-gross avatar Mar 06 '16 20:03 drew-gross

Ok I'll give it a try this evening. Thanks for the quick response On Sun, Mar 6, 2016 at 3:53 PM Drew [email protected] wrote:

The details will depend on your exact setup, but generally you will need to clone your server project, update the package.json file to use the latest version of Parse Server, and the push the project.

— Reply to this email directly or view it on GitHub https://github.com/ParsePlatform/parse-server/issues/873#issuecomment-192989394 .

pushtek avatar Mar 06 '16 20:03 pushtek

Hmm it doesn't seem to work. This is the response I'm getting in the server (Image attached).

Here is my package.json: { "name": "parse-server-example", "version": "2.1.4", "description": "An example Parse API server using the parse-server module", "main": "index.js", "repository": { "type": "git", "url": "https://github.com/ParsePlatform/parse-server-example" }, "license": "MIT", "dependencies": { "express": "~4.2.x", "kerberos": "~0.0.x", "parse": "~1.6.12", "parse-server": "~2.1" }, "scripts": { "start": "node index.js" }, "engines": { "node": ">=4.1" } } ![502_bad_gateway_and_package_json](https://cloud.githubusercontent.com/assets/17555314/13560974/b4eea4a2-e3f4-11e5-87cc-a44026021703.jpg)

pushtek avatar Mar 07 '16 04:03 pushtek

change the parse-server entry to be "2.1.4" and you should get the latest version. (after deploying)

drew-gross avatar Mar 07 '16 04:03 drew-gross

Where is that? Where it says version?

pushtek avatar Mar 07 '16 15:03 pushtek

In package.json you have something like:

"dependencies": {
   ...
   "parse-server" : "~2.1"

Change the ~2.1 to 2.1.4 and re-deploy to make sure you get that version.

gfosco avatar Mar 07 '16 16:03 gfosco

I'm getting the same 502 Bad Gateway Error. Here is my package.json. Can you check if I'm doing something wrong.

{ "name": "parse-server-example", "version": "1.0.0", "description": "An example Parse API server using the parse-server module", "main": "index.js", "repository": { "type": "git", "url": "https://github.com/ParsePlatform/parse-server-example" }, "license": "MIT", "dependencies": { "express": "~4.2.x", "kerberos": "~0.0.x", "parse": "~1.6.12", "parse-server": "~2.1.4" }, "scripts": { "start": "node index.js" }, "engines": { "node": ">=4.1" } }

pushtek avatar Mar 07 '16 17:03 pushtek

On which port are you listening on parse? How is configured you AWS deployment? through elastic beanstalk?

flovilmart avatar Mar 07 '16 17:03 flovilmart

Yes, I use the Parse Server Example and followed the directions. https://github.com/ParsePlatform/parse-server-example

pushtek avatar Mar 07 '16 17:03 pushtek

Yeah updating does not work this way on aws

poojanjhaveri avatar Mar 09 '16 17:03 poojanjhaveri

Did someone found a way to update parse server to 2.1.4 in AWS Beanstalk?

sanergulec avatar Mar 11 '16 15:03 sanergulec

No. Still no luck. I'm still trying.

antonioallen avatar Mar 11 '16 16:03 antonioallen

When I change to 2.1.4 within the package.json file, upload to elastic beanstalk and deploy, I get the following message:

The configuration file __MACOSX/parse-server-example/.ebextensions/._app.config in application version 2.1.4 contains invalid YAML or JSON. YAML exception: unacceptable character '' (0x0) special characters are not allowed in "", position 0, JSON exception: Unexpected character () at position 0.. Update the configuration file.

Has anyone else got this problem in their AWS dashboard, or fixed it? I am trying to update in order to use the original Parse dashboard also!

prent avatar Mar 15 '16 17:03 prent

When you first install parse server to EB, you give it a package.json with a version of Parse Server specified. EB runs npm install, and that installs that version of Parse Server to your instances.

Why would it be any different to update? Just change the version and deploy the same way you did initially, but with a different version.

ghost avatar Mar 15 '16 18:03 ghost

I've tried it many times with a fresh install and it doesn't work. Always a 502 error

Sent from my iPhone

On Mar 15, 2016, at 3:00 PM, George Capote [email protected] wrote:

When you first install parse server to EB, you give it a package.json with a version of Parse Server specified. EB runs npm install, and that installs that version of Parse Server to your instances.

Why would it be any different to update? Just change the version and deploy the same way you did initially, but with a different version.

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub

pushtek avatar Mar 15 '16 20:03 pushtek

@capote I used this link to set it up, it was a shorter install than most I've seen. I don't recall having the option to specify a version number.

prent avatar Mar 15 '16 20:03 prent

@prent To solve your issue. AWS has its own way for zipping files and building a package. My favorite is : zip ../myapp.zip -r * .[^.]* inside the folder.

However I am not able to upgrade parse server by simply changing the package.json file. It gives me 502 error

poojanjhaveri avatar Mar 15 '16 20:03 poojanjhaveri

@poojanjhaveri so if I download the package, unzip, edit and zip again it should work? I'm not fully sure I understand what you mean!

prent avatar Mar 15 '16 21:03 prent

@prent yes that is correct. but when you zip it back. Use this command ^

poojanjhaveri avatar Mar 15 '16 21:03 poojanjhaveri

@poojanjhaveri so that worked for the zip&upload unlike previous times, but it gives me a 502 bad gateway once it's running unfortunately. Have you experienced that before?

prent avatar Mar 15 '16 21:03 prent