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

List of tasks for a destination #45

Closed
ravi opened this issue Nov 11, 2014 · 4 comments
Closed

List of tasks for a destination #45

ravi opened this issue Nov 11, 2014 · 4 comments
Labels

Comments

@ravi
Copy link

ravi commented Nov 11, 2014

(apologies for the issue creation spree)

Would it be generally useful to be able to specify a list of tasks, rather than just one? Something like this:

fly build,deploy:production ./prod-flights.js

Where prod-flight.js might contain:

plan.remote('build', ......);
plan.remote('test', ......);
plan.remote('deploy', ......);

I could use such a feature myself, but perhaps I am using the tool in an unintended or awkward way.

The alternative I guess is to either run the two tasks separately from the command-line or to create tasks like this (which can get unwieldy very fast):

plan.remote([ 'all', 'build-deploy', 'build' ], ......);
plan.remote([ 'all', 'test' ], ......);
plan.remote([ 'all', 'build-deploy', 'deploy'], .....);
@pstadler
Copy link
Owner

@ravi
Copy link
Author

ravi commented Nov 12, 2014

Per the docs, I do not see how I can run a set of tasks in a single command. I am guessing you are suggesting I take approach #1 I outlined above i.e., rather than:

fly build,deploy:production ./prod-flights.js

I should stick with:

fly build:production ./prod-flights.js
fly deploy:production ./prod-flights.js

@pstadler
Copy link
Owner

Simply define your tasks like this, there's no other way right now:

plan.remote(['build', 'deploy'], function() { /* ... */ });
plan.remote(['deploy'], function() { /* ... */ });

@ravi
Copy link
Author

ravi commented Nov 12, 2014

No worries.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants