Closed

Description
Make sure these boxes are checked before submitting your issue -- thanks for reporting issues back to Parse Dashboard!
- You're running version >=2.1.4 of Parse Server.
- You've searched through existing issues. Chances are that your issue has been reported or resolved before.
Environment Setup
- Use Microsoft Azure Web App Service (B1 Plan).
- based on 'parse-server-example'.
Steps to reproduce
- Created parse-dashboard object in index.js
- attach 1. to express app.
- set port listener
Actual Result
No any response(s).
index.js code.
var express = require('express');
var ParseServer = require('parse-server').ParseServer;
var path = require('path');
var AzureStorageAdapter = require('parse-server-azure-storage').AzureStorageAdapter;
var ParseDashboard = require('parse-dashboard');
var databaseUri = process.env.DATABASE_URI || process.env.MONGODB_URI;
if (!databaseUri) {
console.log('DATABASE_URI not specified, falling back to localhost.');
}
var azureStorageAdapter;
if (process.env.STORAGE_ACCOUNT && process.env.STORAGE_CONTAINER && process.env.STORAGE_ACCESS_KEY) {
var options = {
accessKey: process.env.STORAGE_ACCESS_KEY,
directAccess: true
};
azureStorageAdapter = new AzureStorageAdapter(process.env.STORAGE_ACCOUNT, process.env.STORAGE_CONTAINER, options);
} else {
azureStorageAdapter = null;
}
var applicationId = process.env.APP_ID;
var appMasterKey = process.env.MASTER_KEY;
var applicationURL = process.env.SERVER_URL;
var parseConfiguration = {
databaseURI: databaseUri,
cloud: process.env.CLOUD_CODE_MAIN || __dirname + '/cloud/main.js',
appId: applicationId,
masterKey: appMasterKey,
clientKey: process.env.CLIENT_KEY || 'clientKey',
serverURL: applicationURL,
pushConfig: {
android: {
senderId: "sender_id",
apiKey: "api_key"
}
}
};
var dashboard = new ParseDashboard({
"apps": [{
"serverURL": applicationURL,
"appId": applicationId,
"masterKey": appMasterKey,
"appName": "MyApp"
}]
});
if (azureStorageAdapter != null) {
parseConfiguration.filesAdapter = azureStorageAdapter;
}
var api = new ParseServer(parseConfiguration);
var app = express();
// Serve static assets from the /public folder
app.use('/public', express.static(path.join(__dirname, '/public')));
var mountPath = process.env.PARSE_MOUNT || '/parse';
app.use(mountPath, api);
app.use('/dashboard', dashboard);
app.get('/', function(req, res) {
res.status(200).send('Make sure to star the parse-server repo on GitHub! ');
});
app.get('/test', function(req, res) {
res.sendFile(path.join(__dirname, '/public/test.html'));
});
var port = process.env.PORT || 1337;
var httpServer = require('http').createServer(app);
httpServer.listen(port, function() {
console.log('parse-server-example running on port ' + port + '.');
});
httpServer.listen(4040, function(){
console.log('parse-dashboard running on port 4040.');
});
Logs/Trace
Note: If you get a browser JS error please run npm run dev
. This will provide source maps and a much more useful stack trace.
It was not created log file(s).
Metadata
Metadata
Assignees
Labels
No labels