I had a Production environment.
I had a Staging environment based upon my Production environment.
I had a Dev environment based upon my Production environment.
I made a change on my Dev environment without creating a branch.
Because I wanted to maintain my traditional workflow, I ran
forest set-origin Staging which changed the basis of the Dev environment from Production to Staging (verified in UI).
forest branch to create a branch (yes, retroactively ).
forest push pushed changes to Staging which agrees with the diagram in the documentation
Tested in Staging environment.
According to the documentation,
forest deploy should then take those changes on the branch and deploy them to Production but I got
Cannot "deploy" to non-reference environment, please use "push"
What am I missing? I don’t see a CLI command that will change my environment so that I can deploy from Staging.
I was able to use the
deploy to Production feature in the UI and the changes are now live but I’d really like to understand the “correct” way. Also, this was simply adding a collection but we have some more complex changes planned and I’d like to get the hang of this dev flow before moving on.