action
action copied to clipboard
Replace the app files atomically and docker stop first before starting up for succeeding commits
In django application, everytime a commit is added and the action triggers the script it loses the link to the original files and I think its because in the script it deletes and replace the app files.
So I added two things to ensure that the refreshed files are properly loaded.
- Replace the app files atomically
- Use docker restart instead of up
Let me know your thoughts.