|
@@ -41,7 +41,7 @@ display_options () {
|
|
print_style " install" "info"; printf "\t\t Installs docker-sync gem on the host machine.\n"
|
|
print_style " install" "info"; printf "\t\t Installs docker-sync gem on the host machine.\n"
|
|
print_style " up [services]" "success"; printf "\t Starts docker-sync and runs docker compose.\n"
|
|
print_style " up [services]" "success"; printf "\t Starts docker-sync and runs docker compose.\n"
|
|
print_style " down" "success"; printf "\t\t\t Stops containers and docker-sync.\n"
|
|
print_style " down" "success"; printf "\t\t\t Stops containers and docker-sync.\n"
|
|
- print_style " bash" "success"; printf "\t\t\t Opens bash on the workspace.\n"
|
|
|
|
|
|
+ print_style " bash" "success"; printf "\t\t\t Opens bash on the workspace with user laradock.\n"
|
|
print_style " sync" "info"; printf "\t\t\t Manually triggers the synchronization of files.\n"
|
|
print_style " sync" "info"; printf "\t\t\t Manually triggers the synchronization of files.\n"
|
|
print_style " clean" "danger"; printf "\t\t Removes all files from docker-sync.\n"
|
|
print_style " clean" "danger"; printf "\t\t Removes all files from docker-sync.\n"
|
|
}
|
|
}
|
|
@@ -69,7 +69,7 @@ elif [ "$1" == "down" ]; then
|
|
docker-sync stop
|
|
docker-sync stop
|
|
|
|
|
|
elif [ "$1" == "bash" ]; then
|
|
elif [ "$1" == "bash" ]; then
|
|
- docker-compose exec workspace bash
|
|
|
|
|
|
+ docker-compose exec --user=laradock workspace bash
|
|
|
|
|
|
elif [ "$1" == "install" ]; then
|
|
elif [ "$1" == "install" ]; then
|
|
print_style "Installing docker-sync\n" "info"
|
|
print_style "Installing docker-sync\n" "info"
|