From d18e3c819d4e94e618906507b6c2c77d5361dcd0 Mon Sep 17 00:00:00 2001 From: Dmytro Karpovych Date: Fri, 29 Jul 2016 16:59:45 +0300 Subject: [PATCH] add make commands --- Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Makefile b/Makefile index 38e3719..ae0c120 100644 --- a/Makefile +++ b/Makefile @@ -2,16 +2,24 @@ serve: yii serve --docroot=@webroot run: make serve +fix-permissions: + chmod -R 777 runtime/ web/assets/ db-update: php yii modules-migrate db-migrate: make db-update +db-create: + mysql -u root -p -e 'CREATE SCHEMA $(db-name) DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;' +env: + (cp .env.example .env) && (nano .env) message: php yii message src/messages/config.php vendors-update: composer update vendors-install: composer install -o +composer-download: + (curl -sS https://getcomposer.org/installer | php) && (mv composer.phar /usr/local/bin/composer) && (composer global require "fxp/composer-asset-plugin:^1.2.0") test: php codecept.phar run codecept-download: