Development configuration for Protwis on linux servers using Puppet
Tested on Ubuntu 14.04 and CentOS 7 (may need tweaks for other systems).
WARNING: Running this script changes the configuration of your system and may override important settings.
Debian based systems (Debian, Ubuntu)
sudo apt-get -y install git puppet
RedHat based systems (RedHat, CentOS, Fedora)
sudo yum -y install epel-release git
sudo yum -y install puppet
sudo mkdir /protwis
sudo chown $USER /protwis
cd /protwis
git clone https://github.com/protwis/protwis sites/protwis
git clone --recursive https://github.com/protwis/protwis_dev_conf.git conf
cd conf
sudo puppet apply --modulepath protwis_puppet_modules manifests/default.pp
Close you current shell and open a new one to reload environment variables.
This example runs the server on port 8000, but you can also use another port. If you want to access the server on a different machine, make sure the port you are using is open.
cd /protwis/sites/protwis
/env/bin/python3 manage.py runserver 0.0.0.0:8000
You're all set up. The webserver will now be accessible from http://localhost:8000