onepub-dev/dcli

Added a 'deploy' command to the dcil interface

Open

#174 opened on Nov 22, 2021

 (1 comment) (0 reactions) (0 assignees)Dart (30 forks)auto 404
enhancementhelp wanted

Repository metrics

Stars
 (266 stars)
PR merge metrics
 (PR metrics pending)

Description

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.

Contributor guide