0

So I am working on a Go Project using the Heroku CLI

Now, whenever I want to heroku local I have to first of all do go build -o bin/myappName.exe -v.

Is there a way to automate the go build -o bin/myappName.exe -v command, so that whenever I do heroku local then go build -o bin/myappName.exe -v happens automatically before the local deployment.

Thanks alot.

1 Answer 1

1

why not using a Makefile, so you can apply a command that internally does what you need.

heroku-deploy:
    go build -o bin/myappName.exe -v && heroku local

the run make heroku-deploy

if you are using windows you can install cygwin to run the make command.

Sign up to request clarification or add additional context in comments.

1 Comment

That was badass!!! Worked like a charm. Thanks alot.I truly appreciate.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.