mirror of
https://github.com/strapi/strapi.git
synced 2025-08-15 12:18:38 +00:00
Merge pull request #1026 from stephledev/master
check if `strapi start` runs inside a strapi project
This commit is contained in:
commit
1cdca712f7
@ -27,6 +27,11 @@ const { cli, logger } = require('strapi-utils');
|
||||
*/
|
||||
|
||||
module.exports = function() {
|
||||
// Check that we're in a valid Strapi project.
|
||||
if (!cli.isStrapiApp()) {
|
||||
return logger.error('This command can only be used inside a Strapi project.');
|
||||
}
|
||||
|
||||
try {
|
||||
const strapi = function () {
|
||||
try {
|
||||
|
Loading…
x
Reference in New Issue
Block a user