Comments (7)
Both of these worked for me in my tests.
Add one of these methods to config.rb
:
Method 1:
file = File.open("password", "r")
password = file.read
file.close
Method 2:
password = ENV["PASSWORD"]
plus this:
activate :deploy do |deploy|
deploy.method = :ftp
deploy.host = "ftp.example.mil"
deploy.user = "tvaughan"
deploy.password = password
deploy.path = "/var/www"
end
For Method 1 run:
echo -n gr8passwd > password
middleman deploy
For Method 2 run:
PASSWORD=gr8passwd middleman deploy
Please let me know if either of these is acceptable to you. Thanks.
from middleman-deploy.
Looks good to me, I'll give it a shot when I get home and let you know how it goes.
Thats rad your from Pucon! I was literally just there two weeks ago. I backpacked the Villarrica traverse with my girlfriend, it was my favorite place in all of South America.
Thanks for the advice!
from middleman-deploy.
That's crazy. What a small world. Glad you enjoyed it!
Did you make it to Torres del Paine? My wife and I did the W last year. We were just talking today about going back to do the O so we can check out the backside.
from middleman-deploy.
Implemented Method 2 this morning, worked like a charm. Thanks for that.
We didn't get down to Torres del Paine, but we were in that area (we spent a week camping in El Chalten, which is absolutely amazing). I really liked the Villarrica traverse because it was so empty. We saw one person in five days of backpacking, and it felt like we were in the absolute middle of nowhere. Anyhow, you guys are probably starting to gear up for the winter season, which looks like it is just as amazing out there. Let me know if you are ever in San Francisco, I would love to host you and your wife. Cheers.
from middleman-deploy.
Awesome! You definitely hit it at the right time; right after everyone returned to Santiago and the weather is still nice. Good to know that you enjoyed it.
I have family in SF. I just may take you up on that offer some day.
Best.
from middleman-deploy.
If on a mac, another possibility is to keep the password in the keychain.
Retrieve like this:
deploy.password = `security 2>&1 >/dev/null find-generic-password -ga account_name_for_password |ruby -e 'print $1 if STDIN.gets =~ /^password: "(.*)"$/'`
(Replace account_name_for_password with the account name for your password. )
A dialog will ask if you allow the access.
Instructions on how to add a password to the keychain: http://blog.macromates.com/2006/keychain-access-from-shell/
from middleman-deploy.
Oooh, I like this. I'll give it a try later tonight. Thanks for the writeup
Tommy!
On Thu, May 30, 2013 at 12:09 PM, tommysundstrom
[email protected]:
If on a mac, another possibility is to keep the password in the keychain.
Retrieve like this:
deploy.password =
security 2>&1 >/dev/null find-generic-password -ga account_name_for_password |ruby -e 'print $1 if STDIN.gets =~ /^password: "(.*)"$/'
(Replace account_name_for_password with the account name for your
password. )A dialog will ask if you allow the access.
Instructions on how to add a password to the keychain:
http://blog.macromates.com/2006/keychain-access-from-shell/—
Reply to this email directly or view it on GitHubhttps://github.com//issues/22#issuecomment-18701276
.
Paul Tannenbaum
Personal Website http://www.baumerdesigns.com
About.Me http://about.me/paultannenbaum
LinkedIn http://www.linkedin.com/pub/paul-tannenbaum/4/6b2/924
[email protected]
from middleman-deploy.
Related Issues (20)
- README: 'deploy_method' should be 'deploy' HOT 5
- Local changes would be overwritten by checkout
- CNAME gets blown out with force update HOT 4
- `block in initialize': undefined method `deploy_method=' for #<Middleman::Deploy
- Can't deploy to remote HOT 1
- Deploy build directory to github pages? HOT 7
- Git Force-Push Deploy Pushes Root Instead of Build Dir HOT 18
- undefined method "deploy_method" HOT 7
- Compatibility with Middleman 4.1.7 HOT 4
- Deploy path doesn't work for Git Deploy Method HOT 1
- Rsync: Configured username ignored HOT 4
- Forceful deploy cause long upload times
- deploy.user not being set HOT 1
- Error with Middleman 4.2 and middleman-deploy 1.0 HOT 16
- deploy.deploy_method has changed to method HOT 1
- How to deploy robots.txt file HOT 1
- Ubuntu 18.04 rsync method fails
- Support additional commands during deploy
- Feature Request: support a different trunk branch HOT 1
- Is this gem abandoned? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from middleman-deploy.