Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make COSMOVISOR_ENABLED and START_CMD work as intended (take 2)
Users generally want to: 1. Run the blockchain binary either as-is, -or- with snapshot.sh, -or- with cosmovisor. These are controlled `SNAPSHOT_PATH`, and `COSMOVISOR_ENABLED`. and then: 2. Be able to set the blockchain binary command to something else than the default "start". This can be done with `START_CMD` - to amend/override that command via environment variables without changes to deployment logic - e.g. docker-compose yml (unlike with command line args to "docker run ..."). So change the logic to be: "use rule 1 above for prefix, then if args exists then use them, else if `START_CMD` exists then use it, else use `start`". I amended the PR accordingly.
- Loading branch information