Add custom bin scripts

This commit is contained in:
Oliver Davies 2020-05-07 12:57:45 +01:00
parent e8b4dee822
commit 599dff7720
6 changed files with 26 additions and 0 deletions

1
.gitignore vendored
View file

@ -3,6 +3,7 @@
!/.gitignore
!/**/.gitkeep
!/.idea/**
!/bin/*
!/config/**
!/phpstan.neon
!/scripts/**

3
bin/composer.sh Executable file
View file

@ -0,0 +1,3 @@
#!/usr/bin/env bash
symfony composer "$@"

5
bin/drush.sh Executable file
View file

@ -0,0 +1,5 @@
#!/usr/bin/env bash
cd web
symfony php ../vendor/bin/drush "$@"

5
bin/refresh.sh Executable file
View file

@ -0,0 +1,5 @@
#!/usr/bin/env bash
./bin/drush.sh site:install -y \
--existing-config \
--account-pass=admin123

6
bin/start.sh Executable file
View file

@ -0,0 +1,6 @@
#!/usr/bin/env bash
set -e
docker-compose up -d
symfony server:start -d

6
bin/stop.sh Executable file
View file

@ -0,0 +1,6 @@
#!/usr/bin/env bash
set -e
symfony server:stop
docker-compose down