Start redis server during installation for cloud9

This commit is contained in:
Jeremy Zhang 2017-09-03 02:59:08 +00:00
parent 3c2e1ee686
commit cb0d44753d

View File

@ -1,8 +1,9 @@
#!/usr/bin/env bash #!/usr/bin/env bash
echo "[C9Setup] Installing mysql, and creating titan db table" echo "[C9Setup] Installing mysql, redis, and creating titan db table"
cd ~/workspace/ cd ~/workspace/
mysql-ctl start mysql-ctl start
mysql -u root -e "CREATE DATABASE titan;" mysql -u root -e "CREATE DATABASE titan;"
sudo service redis-server start
echo "[C9Setup] Copying config.py for webapp/discordbot and alembic.ini" echo "[C9Setup] Copying config.py for webapp/discordbot and alembic.ini"
cp ~/workspace/webapp/config.example.py ~/workspace/webapp/config.py cp ~/workspace/webapp/config.example.py ~/workspace/webapp/config.py