-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(shopware): add nginx to container for aws environment (#14)
- Loading branch information
1 parent
048be40
commit 37d42e0
Showing
13 changed files
with
49 additions
and
216 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
72 changes: 0 additions & 72 deletions
72
images/shopware/config/nginx/templates/default.conf.template
This file was deleted.
Oops, something went wrong.
16 changes: 2 additions & 14 deletions
16
...etc/nginx/templates/default.conf.template → ...es/shopware/etc/nginx/http.d/default.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/usr/bin/env bash | ||
|
||
start-nginx() { | ||
h1 "Starting nginx..." | ||
|
||
if pidof -s nginx > /dev/null; then | ||
h2 "nginx is already running" | ||
return | ||
fi | ||
|
||
# replace docker php fpm location with local one in nginx default config | ||
sed -i -e 's|php:9000;|localhost:9000;|g' /etc/nginx/http.d/default.conf | ||
|
||
# start nginx | ||
nginx; | ||
|
||
if [ "$?" -eq 0 ]; then | ||
h2 "Started nginx." | ||
else | ||
h2 "Failed to start nginx." | ||
exit 1 | ||
fi | ||
} |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters