mirror of
https://github.com/strapi/strapi.git
synced 2025-07-09 01:52:36 +00:00
16 lines
321 B
JavaScript
16 lines
321 B
JavaScript
![]() |
'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);
|
||
|
|
||
|
(function () {
|
||
|
const strapi = require('strapi');
|
||
|
strapi.start();
|
||
|
})();
|