4 ms·
We use Docker to deploy on Aptible, and this makes our projects entirely self-contained. With a Dockerfile in the project directory, the entire build and runtim
by wyc 12y ago
We use Docker to deploy on Aptible, and this makes our projects entirely self-contained. With a Dockerfile in the project directory, the entire build and runtime environment is now explicitly declared.
With "git push aptible", we push the code to the production server, rebuild the project, and run it in one command.
- nlh 12y agoCan you elaborate on the middle bits? How do you go from 'git push aptible' to the actual execution of the docker commands on the production server? (Setting up something similar myself and would love some direction).
- zenlikethat 12y agoYou can use a git post-receive hook. See here for a similar example: https://github.com/nathanleclaire/laraveldocker/blob/master/hooks/post-receive https://github.com/nathanleclaire/laraveldocker/blob/master/...