Allows you to publish your lektor website to netlify easily.
Author: A. Jesse Jiryu Davis
View all tags.
netlify command-line program according to the instructions on netlify.com.
Add lektor-netlify to your project from the command line:
lektor plugins add lektor-netlify
Configure a server in your
[servers.production] name = Production target = netlify://my-domain.com
Get a personal access token from Netlify's "applications" page:
You must use this access token each time you publish. If your project file is private you can save the token there. Do not commit this!
[servers.production] name = Production target = netlify://my-domain.com key = ACCESS_TOKEN
Now deploy your site like:
lektor deploy production
Otherwise, pass the token on the command line:
lektor deploy production --key ACCESS_TOKEN