sudo apt-get install apache2 mysql-server python python-pip libapache2-mod-wsgi python-mysqldb
sudo pip install -r requirements.txt
sudo cp apache/redirect.conf /etc/apache2/sites-available/redirect.conf
sudo a2dissite 000-default.conf
sudo a2ensite redirect
sudo useradd -m redirect
sudo service apache2 restart
sh /usr/share/doc/apache2/examples/setup-instance xxx
sudo apt-get install exim4
sudo dpkg-reconfigure exim4-config
- internet site: Y
- leave the rest as is and never allow relay
mysql -u login -p password < db/init.sql
sudo pip install -r dev_requirements.txt
Copy redirect/config.cfg.dist to redirect/config.cfg and set all needed config properties
py.test
git clone https://github.com/syncloud/redirect /var/www/redirect
mysqladmin -uroot -proot -f drop redirect
mysql -uroot -proot < db/init.sql
sudo sh -c 'echo "127.0.0.1 test.com" >> /etc/hosts'
sudo sh -c 'echo "127.0.0.1 user.test.com" >> /etc/hosts'
cp config.cfg.dist config.cfg
sudo cp apache/redirect.conf /etc/apache2/sites-available
sudo a2ensite redirect
sudo service apache2 restart
sudo useradd redirect
sudo mkdir /var/www/redirect-test
sudo chown redirect. /var/www/redirect-test
sudo su redirect
cd /var/www/redirect-test
git clone https://github.com/syncloud/redirect .
crontab -e
*/1 * * * * /var/www/redirect-test/deploy.sh > /var/www/redirect-test/deploy.log
sudo visudo -f /etc/sudoers.d/redirect
redirect ALL = (root) NOPASSWD: /usr/bin/service apache2-test restart
redirect ALL = (root) NOPASSWD: /usr/bin/pip install -r requirements.txt
sudo su redirect
cd /var/www/redirect-test
./ci/refresh_test_db redirect-test
./ci/migratedb redirect_test