-
Notifications
You must be signed in to change notification settings - Fork 39
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
Run a project from a remote repository #147
Comments
The first step to add this feature would be to identify a place to add this logic. stateDiagram-v2
init: Initialize project
routes: Identify routes
workers: Prepare workers
server: Initialize server
[*] --> init
init --> routes
routes --> workers
workers --> server
server --> [*]
The project initialization requires:
Currently, the first step is not required as we only support the local filesystem. The second step is done as a separate step ( For me, it makes sense we consolidate these two steps into a single crate. For this reason, I will first rename the |
Thanks @Angelmmiguel! I agree with the assessment of the current situation.
I agree in consolidating both steps in one crate. I like the new crate name, I think it is descriptive. Another alternative name could be |
Another topic that came to my mind is the projects that requires certain runtimes like Python or Ruby. I think that pulling them directly is not a good approach as we're downloading binaries from Internet. However, it's handy to install them automatically in this case. For that reason, I'm going to add a new option to install the runtimes automatically. This will pull required runtimes right after preparing the project:
|
I focused this task on cloning repositories using HTTP/S. Cloning with SSH requires more changes as it requires to get a SSH key from the system. I wanted to avoid adding too many changes in a single PR. Reference: #151 |
Is your feature request related to a problem? Please describe.
There are many different ways a project / workers could be stored. Currently, we are allowing only local resources by pointing
wws
to a system folder:However, this restriction introduces an extra step of downloading and configuring the project in the environment.
wws
can identify the resources based on the path, extension and protocol, and prepare the environment on behalf of the user.Describe the solution you'd like
All the examples require you to clone / download workers. Ideally, the demos must be available in a single command:
wws
must detect the resource and prepare the environment based on it. For this initial implementation, it will detect links that ends as.git
to process them asgit
repositories. I would like to set other specific configurations related to git like:--git-folder
--git-branch
--git-rev
Describe alternatives you've considered
The current alternative is to ask you to clone the repo in advance. We want to avoid this and simplify the process.
Additional context
Related issue from @k33g (#121).
The text was updated successfully, but these errors were encountered: