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

Add exec param to target to run a process #4

Open
dherbst opened this issue Jan 29, 2024 · 0 comments
Open

Add exec param to target to run a process #4

dherbst opened this issue Jan 29, 2024 · 0 comments
Labels
good first issue Good for newcomers help wanted Extra attention is needed

Comments

@dherbst
Copy link
Member

dherbst commented Jan 29, 2024

In the target section, add exec with a line to run something and capture the logs. The working directory should be relative to the ratproxy.yaml file, with a name exec-working-dir The logs can be seen in the admin listener.

Expected configuration:

listen: 0.0.0.0:1414
targets:
  - name: npm-run-vue-app
    target: http://localhost:5173
    path: /vue/
    exec: npm run dev
    exec-working-dir: ./web/vue-app
  - name: other-target
@dherbst dherbst added good first issue Good for newcomers help wanted Extra attention is needed labels Jan 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant