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

Run local-only flights without specifying remote on command-line #160

Closed
ravi opened this issue Mar 20, 2017 · 3 comments
Closed

Run local-only flights without specifying remote on command-line #160

ravi opened this issue Mar 20, 2017 · 3 comments
Labels

Comments

@ravi
Copy link

ravi commented Mar 20, 2017

I have searched around and I am sure an answer exists, but I cannot find it. So, with apologies, a question: if I have a flightplan that has only local tasks, specifying a target on the command-line does not make sense. However fly --flightplan localflight.js returns an error. Is there a way to do this right? Right now, I am using a hack: fly local --flightplan localflight.js with local configured to be localhost. But that still causes an SSH attempt and failure being logged.

@pstadler
Copy link
Owner

Unfortunately, the only way this can be done currently is to specify an empty target.

// flightplan.js
plan.target('local');

// execute:
fly local

@pstadler
Copy link
Owner

Follow up: #161

@ravi
Copy link
Author

ravi commented Apr 3, 2017

Ah, an empty target works for me, it was the 'localhost' part in my solution that was bothering me.

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