-
Notifications
You must be signed in to change notification settings - Fork 8
pel. Local
Please fork and clone the source repo (supposing you are using linux) and update the submodules:
$ git clone https://github.com/<your-github-name>/openradar-landing-page.git
$ cd openradar-landing-page
$ git submodule update --init --recursive
You'll need a working Python environment with these packages installed. Just run inside your Python environment:
$ pip install -r requirements.txt
Now you can start the development server by issuing:
$ ./develop_server.sh
Open a browser and direct it to http://localhost:8000 and you will see the rendered version of the source. You can now edit/add source files and automagically the source will be rendered. Just refresh your browser.
Preparation of the local environment works the same as on Linux. We recommend to create a conda
environment (e.g. named pelican
) where you can
(pelican) > pip install -r requirements.txt
the requirements. In order to render and serve the Pelican pages, replace the call to $ ./develop_server.sh
by
(pelican) > start winrun.bat
(pelican) > start winserve.bat
Then edit/add pages and view them on http://localhost:8000. This is a quick-and-dirty solution and might not be as robust as $ ./develop_server.sh
on Linux. So far, however, it worked well on Windows 7.