Thomas Hunter II 803d691ef8
Add shebang to server.js
* The execute bit is already enabled on server.js
* However, executing it via `./server.js` fails
* Adding the shebang allows the server to start
2018-09-17 11:27:15 -07: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();
})();