Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Lektor plugin to publish your site with Netlify.

Project description

Lektor Netlify Publisher Plugin

Publish your Lektor site to Netlify.

Installation

Install the 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

See the Lektor documentation for more instructions on installing plugins.

Configuration

Configure a server in your .lektorproject file:

[servers.production]
name = Production
target = netlify://my-domain.com

Access Token

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    

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for lektor-netlify, version 0.3
Filename, size File type Python version Upload date Hashes
Filename, size lektor_netlify-0.3-py2-none-any.whl (3.1 kB) File type Wheel Python version py2 Upload date Hashes View hashes
Filename, size lektor-netlify-0.3.tar.gz (2.8 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page