mirror of
https://github.com/InvoiceShelf/InvoiceShelf.git
synced 2026-04-14 00:34:05 +00:00
Rename dev-env-config to devenvconfig for consitency sake
This commit is contained in:
@@ -21,6 +21,7 @@ tests/
|
||||
vendor/
|
||||
|
||||
.dockerignore
|
||||
.devenvconfig
|
||||
.editorconfig
|
||||
.env
|
||||
.env.testing
|
||||
@@ -28,7 +29,6 @@ vendor/
|
||||
.gitattributes
|
||||
.gitignore
|
||||
.prettierrc.json
|
||||
.dev-env-config
|
||||
devenv
|
||||
|
||||
CODE_OF_CONDUCT.md
|
||||
|
||||
2
.gitignore
vendored
2
.gitignore
vendored
@@ -21,7 +21,7 @@ Homestead.yaml
|
||||
!storage/fonts/.gitkeep
|
||||
.DS_Store
|
||||
.php-cs-fixer.cache
|
||||
.dev-env-config
|
||||
.devenvconfig
|
||||
/storage/fonts*
|
||||
package-lock.json
|
||||
/docker/development/docker-compose.yml
|
||||
|
||||
6
devenv
6
devenv
@@ -74,7 +74,7 @@ get_docker_compose_cmd() {
|
||||
|
||||
# Function to find the most recent compose file used
|
||||
find_compose_file() {
|
||||
local config_file=".dev-env-config"
|
||||
local config_file=".devenvconfig"
|
||||
|
||||
if [ -f "$config_file" ]; then
|
||||
cat "$config_file"
|
||||
@@ -86,7 +86,7 @@ find_compose_file() {
|
||||
# Function to save compose file configuration
|
||||
save_config() {
|
||||
local compose_file=$1
|
||||
echo "$compose_file" > .dev-env-config
|
||||
echo "$compose_file" > .devenvconfig
|
||||
}
|
||||
|
||||
# Function to check if host entry exists
|
||||
@@ -335,7 +335,7 @@ cmd_destroy() {
|
||||
if $docker_compose -f "$compose_file" down --rmi all --volumes --remove-orphans; then
|
||||
print_success "Development environment destroyed successfully!"
|
||||
# Remove the config file since everything is destroyed
|
||||
rm -f .dev-env-config
|
||||
rm -f .devenvconfig
|
||||
else
|
||||
print_error "Failed to destroy development environment"
|
||||
exit 1
|
||||
|
||||
Reference in New Issue
Block a user