We do not support independent installations of redirect
sudo apt-get install default-mysql-client default-libmysqlclient-dev apache2 libapache2-mod-wsgi openssl confget
./ci/deploy [version]
vim /var/www/redirect/redirect/secret.cfg
mysql -ulogin -ppassword -e "create database redirect";
mysql -ulogin -ppassword redirect < db/init.sql
sudo docker run --name mysqld -p 3306:3306 -e MYSQL_ROOT_PASSWORD=root -d mysql:5.7.30
mysql -uroot -proot -hlocalhost --protocol=TCP -e "create database redirect"
mysql -uroot -proot -hlocalhost --protocol=TCP redirect < db/init.sql
mysql -uroot -proot -hlocalhost --protocol=TCP redirect < db/update.sql
mysql -uroot -proot -hlocalhost --protocol=TCP redirect -e "insert into user (email, password_hash, update_token, active) values ('[email protected]', sha2('password', 256), 'token', 1)"
sudo docker run --name statsd -p 2003-2004:2003-2004 -p 8125:8125/udp -d graphiteapp/graphite-statsd:1.1.10-4
sudo docker run --name mail -p 25:25 -d mailhog/mailhog:v1.0.0
cd backend
go build -o www ./cmd/www
./www --config-file config/env/local/config.cfg --secret-file config/env/local/secret.cfg --mail-dir emails
npm run dev