diff --git a/.gitignore b/.gitignore index b06300b..50b4488 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,7 @@ !/.gitignore !/**/.gitkeep !/.idea/** +!/bin/* !/config/** !/phpstan.neon !/scripts/** diff --git a/bin/composer.sh b/bin/composer.sh new file mode 100755 index 0000000..1e48c3d --- /dev/null +++ b/bin/composer.sh @@ -0,0 +1,3 @@ +#!/usr/bin/env bash + +symfony composer "$@" diff --git a/bin/drush.sh b/bin/drush.sh new file mode 100755 index 0000000..f83fd50 --- /dev/null +++ b/bin/drush.sh @@ -0,0 +1,5 @@ +#!/usr/bin/env bash + +cd web + +symfony php ../vendor/bin/drush "$@" diff --git a/bin/refresh.sh b/bin/refresh.sh new file mode 100755 index 0000000..76cf03c --- /dev/null +++ b/bin/refresh.sh @@ -0,0 +1,5 @@ +#!/usr/bin/env bash + +./bin/drush.sh site:install -y \ + --existing-config \ + --account-pass=admin123 diff --git a/bin/start.sh b/bin/start.sh new file mode 100755 index 0000000..99059ef --- /dev/null +++ b/bin/start.sh @@ -0,0 +1,6 @@ +#!/usr/bin/env bash + +set -e + +docker-compose up -d +symfony server:start -d diff --git a/bin/stop.sh b/bin/stop.sh new file mode 100755 index 0000000..bd99e2f --- /dev/null +++ b/bin/stop.sh @@ -0,0 +1,6 @@ +#!/usr/bin/env bash + +set -e + +symfony server:stop +docker-compose down