16 lines
315 B
JavaScript
Raw Normal View History

2016-03-18 11:12:50 +01:00
'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);
(() => {
2016-03-18 11:12:50 +01:00
const strapi = require('strapi');
strapi.start();
})();