Commit 7b5e2340 authored by arnaudbey's avatar arnaudbey
Browse files

add granularity to makefile

parent 89401234
......@@ -17,3 +17,11 @@ PWD=rootpassword make install
# Notes
* When installing docker-ce, if you are using a ubuntu based distro (such as Mint), in step 4 of the ubuntu install replace ```$(lsb_release -cs) \``` with the actual name of the ubuntu distro your OS is based upon (For Mint sylvia, it would be xenial)
* During the last docker command, you should be able to leave the default value for every parameter (just press enter, except for the last one, the secret phrase, which should be changed)
* if you let default values, MW should be available at localhost:666 and the phpmyadmin at localhost:8080
# Update
```
git pull origin master
sudo docker-compose exec php bash
make update
```
install:
setfacl -dR -m u:www-data:rwx -m u:`whoami`:rwx var
setfacl -R -m u:www-data:rwx -m u:`whoami`:rwx var
composer install -o
npm install -g bower grunt
php bin/console doctrine:database:create --if-not-exists
php bin/console doctrine:database:create --connection=lexicon --if-not-exists
mysql -u root -p$(PWD) -h db mw < mw_fixtures.sql
mysql -u root -p$(PWD) -h db lexicon < lexicon.sql
install: composer npm permission dbcreate dbpopulate dbupdate assets cache
update: composer npm permission dbupdate assets cache
dbcreate:
php bin/console doctrine:database:create --if-not-exists
php bin/console doctrine:database:create --connection=lexicon --if-not-exists
dbpopulate:
mysql -u root -p$(PWD) -h db mw < mw_fixtures.sql
mysql -u root -p$(PWD) -h db lexicon < lexicon.sql
dbupdate:
php bin/console doctrine:schema:update --force
npm install
bower install --allow-root
php bin/console bazinga:js-translation:dump
php bin/console assets:install --env=prod --symlink
grunt
php bin/console cache:clear --env=prod
php bin/console cache:clear --env=dev
setfacl -dR -m u:www-data:rwx -m u:`whoami`:rwx var
setfacl -R -m u:www-data:rwx -m u:`whoami`:rwx var
cache:
php bin/console cache:clear --env=prod
php bin/console cache:clear --env=dev
permission:
setfacl -dR -m u:www-data:rwx -m u:`whoami`:rwx var web/upload/profilepic
setfacl -R -m u:www-data:rwx -m u:`whoami`:rwx var web/upload/profilepic
composer:
composer install -o
npm:
npm install -g bower grunt
npm install
assets:
bower install --allow-root
php bin/console bazinga:js-translation:dump
php bin/console assets:install --env=prod --symlink
grunt
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment