Hide "publish" button from dev server

86 views Asked by At

My site is meant to be published by the continuous integration hook in my git server. The continuous integration script runs lektor deploy.

As such, I need the publish settings in my project file, but I don't like the peril of having an easily-acessible publish button that can be fat-fingered.

I don't see anything like that in the command-line docs. Is that not possible?

1

There are 1 answers

2
ioonoo On

You should be using lektor build instead and serve your site with a proper http server. (or deploy remotely e.g. with lektor deploy)

The dev server is meant to be just that, used for development. Running it in production might well be a security risk.