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

Added a 'deploy' command to the dcil interface #174

Open
bsutton opened this issue Nov 22, 2021 · 1 comment
Open

Added a 'deploy' command to the dcil interface #174

bsutton opened this issue Nov 22, 2021 · 1 comment

Comments

@bsutton
Copy link
Collaborator

bsutton commented Nov 22, 2021

Often times I want to compile, deploy to a remote system and run a dcli script.

the ideal is to create a new command deploy that can do these three actions in one line

dcli deploy bin/someapp.dart --remote host.domain.com.au  --protocol=<ssh| ftp |http|...> --port=<optional port> --path=<remote path> --run --- <args to someapp>

So the command would
compile bin/someapp.dart
copy it to 'host.domain.com.au' using the selected protocol (defaults to ssh)
uses the --port which defaults based on protocol
the command is copied to the <remote path>
runs the command on the remote host passing in the <args to someapp>

The remote run will only work with ssh
Are the other protocols worth supporting?

It would be nice if we could save the arguments to a config file associated with the script and have an option to re-use the configured commands.

gitbook-com bot pushed a commit that referenced this issue Aug 1, 2022
@bsutton
Copy link
Collaborator Author

bsutton commented Oct 4, 2023

perhaps this should just be the 'dcli run' command with a --remote switch.

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