Documented by Kyle Bruder on Oct 09, 2020
Last updated on Feb 21, 2021
There's not much to downloading Lookaway CMS and running it locally on your own network or own server. Getting it up on the Internet however, is a bit more involved. If standing up a website were easy, everyone would have one! If you have at least a little experience using the Linux command line, I encourage you to give this a shot.
You will need sudo access to a server running Ubuntu Server 20 that is connected to the public Internet. You will also need a domain name which can easily be obtained to less than $15 in most cases.
Learn how to install the services needed to run a production server using Ubuntu Server 20
Learn how to configure a Postgresql database and role for use with Lookaway CMS
While logged in as the Lookaway service user, install virtualenv and create an environment for Lookaway CMS. Then activate the environment and change directory into the environment directory.
Learn how to create and activate a virtual software development environment in Ubuntu Server 20
(lookaway-env) git clone https://github.com/kylebruder/lookaway.git (lookaway-env) cd lookaway (lookaway-env) pip install -r requirements.txt
For the next step, we will tie up some loose ends and create some links.
Configure system level services such as Nginx and Gunicorn needed to serve Lookaway CMS
Initialize Lookaway CMS and services for your specific host by creating secret keys and passwords and linking the appropriate configurations and files.
Learn how to initialize all of the modules, files, and configurations for a fresh production Lookaway CMS installation on a server running Ubuntu Server 20
Use the following commands to allow web traffic to and from the server.
$ sudo ufw allow http && sudo ufw allow https
If you made it this far, great job! A fresh and empty Lookaway server should be ready for use. The last thing we need to do is enable the services in System V and restart the server to make sure everything starts at boot in the event that the server is restarted. Use the following commands to enable services and restart the server. Wait a few minutes, then log back into to check that your services are running.
$ sudo systemctl enable gunicorn & sudo systemctl enable nginx & sudo systemctl enable postgresql & sudo systemctl enable postfix $ sudo shutdown -r now
Learn how to nail down a baseline for "unique" hits to a website by using bash commands to filter and count lines in a Nginx access log file.
Lookaway CMS is an open source content management system for independent publishing. Built with Python and Django.