Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve instructions for local builds #19

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
.venv
build
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,22 @@ Issue tracker for organizational matters and website
The pimutils website is a [Lektor](https://www.getlektor.com/) project. After installing Lektor you should be able to run the admin interface using ``lektor server``. Pushing your changes to master will automatically deploy via Travis to GitHub pages.

The DNS is managed via Markus Unterwaditzer's (@untitaker) private accounts.

## Local usage

Create a virtual environment for lektor:

mkvirtualenv pimutils-meta
pip install -r requirements.txt

Build the project once with:

lektor build --output-path ./build/

Or watch and rebuild when changes happen:

fd | entr lektor build --output-path build

The built files can be served locally with just python:

python -m http.server 6060 -d build
Loading