Replies: 3 comments
-
I don’t see a method to copy your source code into the image for Digital Ocean. Unless your server has the code on the host file system? if you look at Spin, you can see how we do it with multistage build https://github.com/serversideup/spin-template-laravel-basic/blob/3c6cf6cd70dced451e38d873ea94b5cd7d18ce94/template/Dockerfile#L50 |
Beta Was this translation helpful? Give feedback.
-
@jaydrogers I did look at the Spin docs but completely spaced on looks at the actual code. 🤦🏻♂️ I'll have time to do a deep dive later this afternoon. It's looking more and more likely that Spin is going to end up being the solution! |
Beta Was this translation helpful? Give feedback.
-
@jaydrogers I'm in the middle of configuring the Laravel Basic template and things are looking good right now. I'm gonna try and deploy it to a dev server to see how it behaves. Assuming all goes well, I'll be upgrading to Spin Pro in early November! I'll keep you updated here if I run into any issues during the deployment phase. |
Beta Was this translation helpful? Give feedback.
-
Hi All,
I've got a custom script that runs when the docker container starts. When I run the docker container locally, everything runs normally, but when I deploy the container to Digital Ocean, I get an error saying that the artisan file doesn't exist.
Below is the custom startup script with my debugging code commented out. This error occurs in both scenarios of the code being commented out and when the script runs fully.
The container starts up and runs perfectly fine when the shell script is not copied over, but without these commands running at startup, the system will never perform the necessary updates on deployment.
999-epp-startup.sh
Dockerfile
docker-compose.yml
Beta Was this translation helpful? Give feedback.
All reactions