Ability to run a bash command on Reload · Issue #250 · oxequa/realize · GitHub
Skip to content

Ability to run a bash command on Reload #250

Open

Description

@mrcampbell

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.

Activity

  1. mrcampbell commented on Jul 31, 2019

    @mrcampbell
    Author

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

  2. snassr commented on Apr 21, 2020

    @snassr

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions