Alberto Maturano 6f35b53d3c Add execute bit to server.js file
Without this, #1967 makes no sense.
2018-09-27 12:54:49 -05:00

17 lines
335 B
JavaScript
Executable File

#!/usr/bin/env node
'use strict';
/**
* Use `server.js` to run your application without `$ strapi start`.
* To start the server, run: `$ npm start`.
*
* This is handy in situations where the Strapi CLI is not relevant or useful.
*/
process.chdir(__dirname);
(() => {
const strapi = require('strapi');
strapi.start();
})();