-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Convert to docker #1
Conversation
@@ -0,0 +1,84 @@ | |||
#!/bin/sh |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@212223 why this directory move from app
to app/default
here and in lots of places? 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is good to have a web application served by nginx
from a sub-directory app/default
instead of a parent directory app
because this allows to switch between applications instantaneously.
For example instead of having your application inside the app/default
dir you may have it in app/bar
dir and a symlink app/default -> app/bar
that points to the dir of the application you want to serve. Demo commit.
Then if you want to change the application you serve you don't need to reconfigure nginx nor restarting any of the services is required but only changing the symlink target, for example:
cd app
unlink default
ln -sr foo default
like in the Demo commit
and you are ready to serve the new application.
Example use cases:
- Live update of an application
- Rollback to previous version of an app in case of troubles.
- Presenting different applications or the same in different versions during a time constrained presentation.
- Fallback to an application that helps debugging problems.
- Creating a new version of an app just by copying it to a new dir and symlink to it.
Currently the web app is in the app/default
dir. Would you like me to:
- Leave it as it is
- Move it to a different dir and create a symlink
default
that points to that dir - Move that application to
app
dir fromapp/default
and reconfigure docker-compose?
…ApiClient.php from the commit 599bdb3
Application conversion to docker-compose project. Manual creation in ./README.md and ./docker/service/README.md