File tree 1 file changed +5
-15
lines changed
1 file changed +5
-15
lines changed Original file line number Diff line number Diff line change @@ -132,9 +132,8 @@ echo ".env file created successfully!"
132
132
133
133
if [ " ${APP_CONTEXT} " == " prod" ]
134
134
then
135
-
136
- APP_CONTEXT=" dev"
137
- sed -i " s|^APP_ENV=prod.*|APP_ENV=dev|" .env
135
+ sed -i " s|^APP_ENV=dev.*|APP_ENV=prod|" .env
136
+ APP_CONTEXT=" prod"
138
137
139
138
# Create docker-compose.override.yml file to use the good entrypoint
140
139
cat > docker-compose.override.yml << EOL
@@ -198,18 +197,9 @@ networks:
198
197
199
198
EOL
200
199
201
-
202
- sg docker -c " docker compose up --build -d"
203
-
204
- sleep 90
205
-
206
- sg docker -c " docker compose stop"
207
-
208
- sleep 30
209
-
210
- sed -i " s|^APP_ENV=dev.*|APP_ENV=prod|" .env
211
- APP_CONTEXT=" prod"
212
-
200
+ else
201
+ APP_CONTEXT=" dev"
202
+ sed -i " s|^APP_ENV=prod.*|APP_ENV=dev|" .env
213
203
214
204
# Create docker-compose.override.yml file to use the good entrypoint
215
205
cat > docker-compose.override.yml << EOL
You can’t perform that action at this time.
0 commit comments