Skip to content

Instantly share code, notes, and snippets.

@JesseHerrick
Created October 13, 2013 18:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JesseHerrick/6965950 to your computer and use it in GitHub Desktop.
Save JesseHerrick/6965950 to your computer and use it in GitHub Desktop.
Example config file for jekyll-ftp.
name: Your New Jekyll Site
markdown: redcarpet
pygments: true
username: UserName
server_url: ftp.myserver.com
remote_dir: /public_html
@bfontaine
Copy link

How do you set the password?

@burnedikt
Copy link

burnedikt commented May 29, 2020

How do you set the password?

you'll be prompted by jekyll-ftp. If you do not want to (or cannot) answer the prompt you can provide the password to stdin like

echo 'supersecurepassword' | jekyll-ftp deploy

@rubenavilah
Copy link

How do you set the password?

you'll be prompted by jekyll-ftp. If you do not want to (or cannot) answer the prompt you can provide the password to stdin like

echo 'supersecurepassword' | jekyll-ftp deploy

Sorry but I don't know how to do the stdin file, can you be more explicit in the steps please?

@burnedikt
Copy link

How do you set the password?

you'll be prompted by jekyll-ftp. If you do not want to (or cannot) answer the prompt you can provide the password to stdin like

echo 'supersecurepassword' | jekyll-ftp deploy

Sorry but I don't know how to do the stdin file, can you be more explicit in the steps please?

There's really not much to it. If you run jekyll-ftp deploy it will ask (prompt) you for the password to your ftp server (matching the username that you specified in _config.yml). For manual deployments, this should be sufficient.

Only if you intend to run this in an automated manner (e.g. as part of a CI/CD pipeline), you may need a way to bypass the prompt and directly provide the password either by hardcoding the password into the command like echo 'supersecurepassword' | jekyll-ftp deploy or by putting the password into a file somewhere and running cat /path/to/file/with/password | jekyll-ftp deploy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment