Skip to content

Automatically run [deploy-commands.js] when commands change#3

Open
ShunyaoLiang wants to merge 1 commit intomainfrom
thomas/overengineered-deploy-flow
Open

Automatically run [deploy-commands.js] when commands change#3
ShunyaoLiang wants to merge 1 commit intomainfrom
thomas/overengineered-deploy-flow

Conversation

@ShunyaoLiang
Copy link
Copy Markdown
Contributor

The way it works is that it uses util.inspect to check the dump of the commands array. So now deploy-commands.js is clever enough to check the current commands array against the dump of the last one, and only redeploy commands if it changed.

(It also dumps the API key in asw. Without it, you might change the API key and then the script wouldn't be clever enough to redeploy even though it should.)

@bobrandy13
Copy link
Copy Markdown
Contributor

lgtm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants