Skip to content

Commit 691544b

Browse files
author
Ray
committed
Example for serving files from parse/public directory like a domain.parseapp.com webapp.
1 parent 06d4891 commit 691544b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ app.use(mountPath, api);
3030
app.get('/', function(req, res) {
3131
res.status(200).send('I dream of being a web site.');
3232
});
33+
// If you are migrating a webapp hosted on domain.parseapp.com:
34+
// Remove statement above serving the 200 status (app.get('/ function()});
35+
// Uncomment app.use below and set the absolute path for serving files in the /public dir
36+
// app.use(express.static(__dirname + '/public'));
3337

3438
var port = process.env.PORT || 1337;
3539
app.listen(port, function() {

0 commit comments

Comments
 (0)