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

Sync wooey script with a file in a version control repository on Github or Gitlab #184

Open
yaoyuyang opened this issue Jul 15, 2017 · 3 comments

Comments

@yaoyuyang
Copy link

It would be nice if we could bring in and sync with a file that is in a version control repository on Github or Gitlab. The pain point I have is that I'm developing a few Wooey scripts, and have to upload in Wooey constantly to update the script. I have a git repo that tracks every Wooey script. The ideal feature I want is: make a commit to the script, push to a git repo and the script in Wooey automatically updates.

I think as a first step, we can add a feature in Wooey script admin page that allows entering an url (like a url link to the github raw file) for each script and a button to manually pull script from this url. Every time you hit the button, it pulls the file and updates the script in Wooey if it's different from previous version and iteration.

I think the bigger picture here is that for a group or person that has many Wooey scripts to maintain, how to effectively manage and update these scripts. I think making a link between the Wooey scripts and git repo would be a good direction.

I'm open to any discussions! Thanks!

@Chris7
Copy link
Member

Chris7 commented Jul 15, 2017

Hey @yaoyuyang,

There is an outstanding PR here: #55 that does exactly that. You could give it a try for the first part.

For the second part, there is a command line way to add scripts to wooey that can update scripts. python manage.py addscript --update <script or folder>. You can easily set a watch on a directory to trigger this, or trigger it as part of a CI.

@Chris7
Copy link
Member

Chris7 commented Jun 18, 2023

#384 may address some of this -- you are able to publish scripts to wooey via an api, which can be tied into the CI for any updates to be auto-released.

@yaoyuyang
Copy link
Author

Amazing @Chris7! Let me know if you need any help on reviewing PRs.

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