Giter VIP home page Giter VIP logo

Comments (7)

tvaughan avatar tvaughan commented on July 22, 2024

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.

paultannenbaum avatar paultannenbaum commented on July 22, 2024

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.

tvaughan avatar tvaughan commented on July 22, 2024

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.

paultannenbaum avatar paultannenbaum commented on July 22, 2024

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.

tvaughan avatar tvaughan commented on July 22, 2024

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.

tommysundstrom avatar tommysundstrom commented on July 22, 2024

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.

paultannenbaum avatar paultannenbaum commented on July 22, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.