Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to run a bash command on Reload #250

Open
mrcampbell opened this issue Jul 31, 2019 · 2 comments
Open

Ability to run a bash command on Reload #250

mrcampbell opened this issue Jul 31, 2019 · 2 comments

Comments

@mrcampbell
Copy link

My project runs off a bash file, and so to run my app I run the command ./run -d (d being a flag for "development").

Rather than running a .go file, this should be able to have a custom command at runtime.

@mrcampbell
Copy link
Author

I'm willing to work on this if there's nothing in the works!

@snassr
Copy link

snassr commented Apr 21, 2020

For others looking here, you can already do that using the scripts key (It can be found in the readme config sample).

          scripts:
              - type: before
                command: echo hello before every reload
                output: true

The above runs the command on every reload. if you need it to run once, you can include global as follows:

          scripts:
              - type: before
                command: echo hello before any other command on startup only
                global: true
                output: true
``

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

No branches or pull requests

2 participants