How can i update paser-server on AWS Beanstalk?
I connect parse-dashboard (node v4.3)
but I got a message below

So I try updating https://github.com/ParsePlatform/parse-server/issues/873
but I faild updating.


[app.json] { "name": "Parse Server Example", "description": "An example Parse API server using the parse-server module", "repository": "https://github.com/ParsePlatform/parse-server-example", "logo": "https://avatars0.githubusercontent.com/u/1294580?v=3&s=200", "keywords": ["node", "express", "parse"], "env": { "PARSE_MOUNT": { "description": "Configure Parse API route.", "value": "/parse" }, "APP_ID": { "description": "A unique identifier for your app.", "value": "myAppId" }, "MASTER_KEY": { "description": "A key that overrides all permissions. Keep this secret.", "value": "myMasterKey" }, "SERVER_URL": { "description": "URL to connect to your Heroku instance (update with your app's name + PARSE_MOUNT)", "value": "myURL" }, "FILE_KEY": { "description": "The Parse file key", "value": "myFileKey" }, "CLIENT_KEY": { "description": "The Parse client key", "value": "myClientKey" }, "REST_KEY": { "description": "The Parse REST key", "value": "myRestKey" } }, "image": "heroku/nodejs", "addons": ["mongolab"] }
[index.js] // Example express application adding the parse-server module to expose Parse // compatible API routes.
var express = require('express'); var ParseServer = require('parse-server').ParseServer;
var databaseUri = process.env.DATABASE_URI;
if (!databaseUri) { console.log('DATABASE_URI not specified, falling back to localhost.'); }
var api = new ParseServer({ databaseURI: process.env.DATABASE_URI, cloud: process.env.CLOUD_CODE_MAIN || __dirname + '/main.js', appId: process.env.APP_ID || '', fileKey: process.env.FILE_KEY || '', masterKey: process.env.MASTER_KEY || '', clientKey: process.env.CLIENT_KEY || '', restAPIKey: process.env.REST_KEY || '', serverURL: process.env.SERVER_URL || '' }); // Client-keys like the javascript key or the .NET key are not necessary with parse-server // If you wish you require them, you can set them as options in the initialization above: // javascriptKey, restAPIKey, dotNetKey, clientKey
var app = express();
// Serve the Parse API on the /parse URL prefix var mountPath = process.env.PARSE_MOUNT || '/parse'; app.use(mountPath, api);
// Parse Server plays nicely with the rest of your web routes app.get('/', function(req, res) { res.status(200).send('I dream of being a web site!'); });
var port = process.env.PORT || 1337;
app.listen(port, function() { console.log('parse-server-example running on port ' + port + '.'); });
[packpage.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.4" }, "scripts": { "start":"node index.js" }, "engines": { "node": ">=4.1" } }
Unfortunately we can't help with AWS specific issues. Try checking out the docs for AWS. If you discover an issue that is specific to Parse Server, please report the bug on the Parse Server repo.
@json-park i found the best way to do this is creating a new application version, upload zip package with updated package.json file. then deploy
@jdzorz Hi~ I don't understand your description. I want more detail description.
@json-park Before trying these steps i recommend backing up your instances. or trying in a dev environment.
- Download newest parse-server-example as zip https://github.com/ParsePlatform/parse-server-example/
- the zip folder should have contents in the root of the folder. If the zip file structure looks like this:

- You'll need to extract then rezip only the contents.Should look like this:

- Then you can go to EB and in your environment. Select application versions

- Upload the new version
- Once its uploaded you can then deploy to your EB environment. This will then update your server. Also it leaves you an option to revert changes to your old version.
@jdzorz Thank you very much your kindly answer~ I've solved this problem.
but I got a another problem
I add code a S3Adapter like below but deploy is faild.
[index.js]
Do you know this problem?