Skip to main content

Publish your Lektor site to Netlify

Project description

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:

[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.

Source Distribution

lektor-netlify-0.1.tar.gz (1.7 kB view details)

Uploaded Source

Built Distribution

lektor_netlify-0.1-py2-none-any.whl (3.2 kB view details)

Uploaded Python 2

File details

Details for the file lektor-netlify-0.1.tar.gz.

File metadata

File hashes

Hashes for lektor-netlify-0.1.tar.gz
Algorithm Hash digest
SHA256 731d3cbfd998bfa0da3b5326e041a66e07fa9a8b1bd399b7df6180e55c593aa0
MD5 310e71cb04da0821826e9ec4e6f8ab57
BLAKE2b-256 e18634e26a6aea6fb4e44f293fbb6c60a046c64cdfc1d3ec50f82776f50c0760

See more details on using hashes here.

File details

Details for the file lektor_netlify-0.1-py2-none-any.whl.

File metadata

File hashes

Hashes for lektor_netlify-0.1-py2-none-any.whl
Algorithm Hash digest
SHA256 7d1a95eb91ed9f9dfaf0a14867f856a3ca31dd7448fd02c7c35e2c52b4bb7987
MD5 9b97736fcd1e69a959faba475fc64a25
BLAKE2b-256 24d000762534c2912d08e2f2ee211385a55f59e2ad9f6743034f431a6f25c618

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page