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

Investigate re-implementing bash scripts in JS #5

Open
jeremy21212121 opened this issue Feb 26, 2020 · 0 comments
Open

Investigate re-implementing bash scripts in JS #5

jeremy21212121 opened this issue Feb 26, 2020 · 0 comments

Comments

@jeremy21212121
Copy link
Owner

jeremy21212121 commented Feb 26, 2020

It would be great to get rid of the bash scripts entirely.

I could use isomorphic-git, a JS git implementation, for the git commands.

ShellJS is a JS implementation of Unix shell commands. It also provides a nice syntax if/when one has to resort to calling regular shell commands.

Calling npm scripts from JS should be possible. They are just JS ultimately, right?

That just leaves systemd integration, specifically restarting the service. Since the services are set to auto-restart, we could just terminate the process somehow. We'd probably want to set the restart interval lower than 10 seconds in that case, but that is a tradeoff

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

1 participant