You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a way to mix local shell commands and remote commands?
I take a quick look and it seems that the gem queue all the remote commands until the end, then mina execute the remote commands.
I have an small vps and I can't compile the assets there, I need to precomplile the assets in my local machine first. And it would be nice if I could mix local and remote commands in one task.
I can't even create a task like this:
task :deploy => :prepare_assets do ... end
All the commands will mixed up if I do something like that.
The only solution for me was to create 3 tasks: prepare_assets, deploy and deploy_assests
What do you recommend?
The text was updated successfully, but these errors were encountered:
If that's what you're after, you should take a look at Capistrano or Vlad. The "queue everything and execute" is precisely why Mina was created, as other deploy tools don't do the same thing.
You can also simply compile all the assets first, tarball the entire assets/ directory, scp it, and catch it after deploying.
This may seem hackish as there's no Mina helper API to handle this case, but this isn't a popular use case so far, and Capistrano may be better suited for your purposes.
Is there a way to mix local shell commands and remote commands?
I take a quick look and it seems that the gem queue all the remote commands until the end, then mina execute the remote commands.
I have an small vps and I can't compile the assets there, I need to precomplile the assets in my local machine first. And it would be nice if I could mix local and remote commands in one task.
I can't even create a task like this:
task :deploy => :prepare_assets do ... end
All the commands will mixed up if I do something like that.
The only solution for me was to create 3 tasks: prepare_assets, deploy and deploy_assests
What do you recommend?
The text was updated successfully, but these errors were encountered: