I'm using Heroku pipeles to deploy an webapp that has the back-end app writen on Ruby on Rails and the front-end app using VueJS and I'm having trouble promoting the front-end app from one stage to another inside the pipeline because I'm setting up the base URL for my back-end app using and enviroment variable inside my VueJS app.
The problem is that the build process happens when I commit my code to the Heroku repo in one particular stage, and the build process reads the base URL ENV at that moment at sets it up for the VueJS app, but when I promote my app from, let's say, development to staging, the app is not rebuild, so I endup with an app on staging pointing to my developing back-end.
So rather than promoting my front-end app from development to staging, I have to actually add both stage's heroku git repo remote to my local project git repo and push it to both stages so the build process happens separatly in each stage and get's the base URL ENV of that specific stage. It works, but I end up not having to be able to use the promote feature from heroku pipeline.