Updating Parse on AWS
How should I go about updating Parse on AWS? Thanks
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.
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 .
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" } } 
change the parse-server entry to be "2.1.4" and you should get the latest version. (after deploying)
Where is that? Where it says version?
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.
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" } }
On which port are you listening on parse? How is configured you AWS deployment? through elastic beanstalk?
Yes, I use the Parse Server Example and followed the directions. https://github.com/ParsePlatform/parse-server-example
Yeah updating does not work this way on aws
Did someone found a way to update parse server to 2.1.4 in AWS Beanstalk?
No. Still no luck. I'm still trying.
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!
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.
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
@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 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 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 yes that is correct. but when you zip it back. Use this command ^
@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?