Skip to content
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

deploy.sh allow non root with sudo to execute and zero down time on update.sh (kinda) #5

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

MalikAbdCom
Copy link

@MalikAbdCom MalikAbdCom commented Oct 25, 2024

thanks for the tutorial lee!
on previous commit, this script shows how to deploy using root user, but for some cases we want to disable root login and give another user sudo privileges to do deployment, i logged in with custom user and with previous command it will throw error like 'permission denied', this update works on my deployment.
also when updating, update.sh take the docker image down first then building the new one, which there will be no running website during building new image, updated update.sh will have zero down time deploymen (kinda) and if new container is fail, it will exit without taking the old image down *sorrybadenglish:v

thanks for the tutorial lee!
on previous commit, this script shows how to deploy using root user, but for some cases we want to disable root login and give another user sudo privileges to do deployment, i logged in with custom user and with previous command it will throw error like 'permission denied', this update works on my deployment.
*sorrybadenglish:v
@MalikAbdCom MalikAbdCom changed the title Update deploy.sh, allow non root user with sudo privileges to execute. deploy.sh allow non root with sudo to execute and zero down time on update.sh (kinda) Oct 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant