adie / mina-scp Goto Github PK
View Code? Open in Web Editor NEWDownload/upload helpers for Mina deployer using SCP
License: MIT License
Download/upload helpers for Mina deployer using SCP
License: MIT License
In the following task:
desc "Upload secret configuration files."
task :config => :environment do
queue! scp_upload "#{app_root}/config/application.yml", "#{deploy_to}/shared/config/application.yml", verbose: true
queue! scp_upload "#{app_root}/config/database.yml", "#{deploy_to}/shared/config/database.yml", verbose: true
end
The first call to scp_upload is successful, but the second one is never triggered. Observe:
โ recruiter git:(master) โ mina config
$ scp /Users/jrhorn424/projects/ices-recruiter/recruiter/config/application.yml [email protected]:/u/apps/recruiter/shared/config/application.yml
application.yml 100% 560 0.6KB/s 00:00
โ recruiter git:(master) โ
Edit: Upon reviewing the source code for mina-scp, this is likely either a problem with return codes or my understanding of how to create mina tasks.
Hi,
After upgrading to mina 1.0.3 (and using mina-scp 0.1.2) I started seeing this when I do an scp_upload:
mina aborted!
NoMethodError: undefined method domain!' for main:Object /Users/alxx/.rvm/gems/ruby-2.2.3@latestrails/gems/mina-scp-0.1.2/lib/mina/scp.rb:2:in
scp_transfer'
/Users/alxx/.rvm/gems/ruby-2.2.3@latestrails/gems/mina-scp-0.1.2/lib/mina/scp.rb:23:in `scp_upload'
Any ideas?
Thanks.
I am not familiar with ruby, but I think it is easy to add progress bar, some example
Sad but some experts said you can't show progress via native scp command
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.