Advice on deployment process #4283
Replies: 1 comment 7 replies
-
Heyy @RoyalVICTOR-pro I personally use github actions to test and deploy my application but you can do the same with gitlab. I have two yml files, one for executing tests that is triggered by push and pull request, and one another that build my adonisjs application on a docker image and push it on a registry (triggered only by push). When my image is pushed on the registry my action login into my server with ssh and log into the registry, pull the new image and replace the old container with a container with the new image version. Here is a example but it's quit different of my process. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone!
I'm looking to deploy an AdonisJS project (on "The World" hosting at Planet Hoster - shared hosting).
I would like to find a good deployment process. I want it to be smooth while favoring stability. Knowing that my project is on GitLab, that when I deploy, I will probably have unit or functional tests, migrations, the build, I'm wondering about the best way to do this. Attached is a draft of what I was initially thinking.
I would prefer to use "Git pull" to update my files on the production server, but after, the 'node ace build --production' command doesn't work on the server (build command doesn't exist). And I don't know how to run my tests on the server either (test command doesn't exist). I don't think I have the possibility to do CI/CD on the server.
If anyone has advice, a resource (other than the documentation), I'm interested. I'm far from being a deployment specialist, don't hesitate if I say big mistakes or if there are simpler things.
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions