Explorar el Código

Example for serving files from parse/public directory like a domain.parseapp.com webapp.

Ray hace 9 años
padre
commit
691544b2d2
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. 4 0
      index.js

+ 4 - 0
index.js

@@ -30,6 +30,10 @@ app.use(mountPath, api);
 app.get('/', function(req, res) {
   res.status(200).send('I dream of being a web site.');
 });
+ // If you are migrating a webapp hosted on domain.parseapp.com:
+ // Remove statement above serving the 200 status (app.get('/ function()});
+ // Uncomment app.use below and set the absolute path for serving files in the /public dir
+ // app.use(express.static(__dirname + '/public'));
 
 var port = process.env.PORT || 1337;
 app.listen(port, function() {