mirror of
https://github.com/strapi/strapi.git
synced 2025-08-15 04:08:04 +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() {
|
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 {
|
try {
|
||||||
const strapi = function () {
|
const strapi = function () {
|
||||||
try {
|
try {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user