User-friendly static site generation as a service. Powered by Pelican.
sudo apt-get install postgresql-9.4 postgresql-server-dev-9.4
fugl
that owns
a database with the same name. To set this up, enter the Postgres REPL with
sudo -u postgres psql
and enter the following commands:CREATEDB
to run tests, but during deploy we
will shut that off. CREATE ROLE fugl PASSWORD '<password>' NOSUPERUSER CREATEDB NOCREATEROLE INHERIT LOGIN;
CREATE DATABASE fugl OWNER fugl;
postgresql.conf
(found on Ubuntu under /etc/postgresql/9.4/main/postgresql.conf
),
and uncomment the line: listen_addresses = 'localhost'
. Now you will only be
able to access Postgres from your machine. (Better for development, but you
will not want this for deployment.)virtualenv -p python3 venv
. venv/bin/activate
deactivate
)pip install -r requirements.txt
sudo apt-get install python3-dev libxml2-dev libxslt1-dev lib32z1-dev
.python manage.py populate ../themes/
python manage.py tswizzle
make run
make test
To get themes added to the database (you should have gotten everything prior to this done):
git submodule init
git submodule update
# wait a little while
cd pelican-themes
git submodule init
git submodule update
# wait a lot longer
cd ../fugl
./manage.py loadthemes
To deploy a new version, the following procedure should be used:
service uwsgi stop fugl
./home/django/fugl
and do your git pull
../manage.py makemigrations
and ./manage.py migrate
../manage.py collectstatic
!service uwsgi start fugl
.And you should have successfully deployed a new Fugl!