rackspace / runway

Simplify infrastructure/app deployment.

Home Page:https://runway.readthedocs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[QUESTION] How to use 'make deploy' in Windows

FrankAllotta opened this issue · comments

Question

How do you use 'make deploy' in windows when using a make file?

Context

I have a make file set up and I am trying to run 'make deploy-vpc' from the windows command line. I have Make installed via choco but I receive the following error.

C:\Users<USER>\Projects\vpc-tf>make deploy-vpc
DEPLOY_ENVIRONMENT=common runway deploy --tag vpc
'DEPLOY_ENVIRONMENT' is not recognized as an internal or external command,
operable program or batch file.
make: *** [Makefile:4: deploy-vpc] Error 1

This is the content of the make file.

deploy-vpc:
DEPLOY_ENVIRONMENT=common runway deploy --tag vpc

I'm guessing this is due to some inherent issue with the way Windows uses environment variables on the command line?

Hi Frank,
You may be on the right track with how Windows manages env variables, I'll have to track down a Windows env to test with, but can you just update your command to pass in the env like this instead?

poetry run runway plan --deploy-environment test
[runway] deploy environment "test" is explicitly defined in the environment
[runway] if not correct, update the value or unset it to fall back to the name of the current git branch or parent directory