FeathersJS deployment - Gitlab CI/CD - Heroku
Deploying FeathersJS apps with Gitlab couldn’t be easier with the integrated CI/CD process. Here is how I am deploying to Heroku for staging enviroments. This is my .gitlab-ci.yml file in the root of my project.
Log in to Gitlab and set up some CI/CD secrets which contain your
HEROKU_APP
HEROKU_CI_API_KEY
Create an app within Heroku with the same name as
HEROKU_NAME
Push to your development branch and you should see the two stages within your pipeline, one for tests and one for deployment. Assuming your tests pass then your app should be deployed to Heroku.
If you see anything that is wrong or can be improved please get in touch.
Thanks for reading!
Tags:
Published by Matt Chaffe