Go to file
2024-07-23 22:01:21 -06:00
assets new logo art 2023-03-25 20:42:57 -06:00
content Citizen Scientist 2024-07-23 22:01:21 -06:00
themes/theme/templates Disclaim all copyright, fix wording 2024-07-06 18:49:51 -06:00
.gitignore Initial site of temporary Solarpunk City website 2023-03-06 11:14:55 -07:00
pelicanconf.py tweak favicon 2023-03-26 00:30:31 -06:00
publishconf.py tweak favicon 2023-03-26 00:30:31 -06:00
README.md Add how to fix permissions 2023-03-25 21:30:26 -06:00
requirements.txt Freeze requirements 2023-03-07 22:39:25 -07:00

Solarpunk City

Development

After cloning the repo:

$ cd solarpunkcity/
$ virtualenv -p python3 env
$ source env/bin/activate
(env) $ pip install -r requirements.txt

While editing:

$ source env/bin/activate
(env) $ pelican -rl -s pelicanconf.py

To deploy:

$ source env/bin/activate
(env) $ pelican -d -s publishconf.py && rsync -rv --delete output/ solarpunkcity.org:/var/www/solarpunkcity/

Editing

Edit .md files in the content/ directory.

Place all media in the content/media/ directory. Pelican will automatically find it.

Permissions

To fix permissions on the server:

$ sudo chown -R root:solarpunks /var/www/solarpunkcity
$ sudo chmod -R g+rw /var/www/solarpunkcity