Merge pull request #1026 from stephledev/master

check if `strapi start` runs inside a strapi project
This commit is contained in:
Jim LAURIE 2018-04-25 14:59:40 +02:00 committed by GitHub
commit 1cdca712f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 {