From 5f44738865a7e2b507afd9ace1d883cd318ca682 Mon Sep 17 00:00:00 2001 From: Jeremy Zhang Date: Wed, 31 May 2017 19:27:30 +0000 Subject: [PATCH] Add app location to c9 install --- cloud9_install.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cloud9_install.sh b/cloud9_install.sh index 73336e9..2eab9d7 100644 --- a/cloud9_install.sh +++ b/cloud9_install.sh @@ -28,8 +28,10 @@ echo "[C9Setup] Setting database uri for discordbot/config.py" #'database-uri': "mysql+pymysql://root@localhost/titan", sed -i "4s/.*/\'database-uri\': \"mysql+pymysql:\/\/root@localhost\/titan\",/" ~/workspace/discordbot/config.py -echo "[C9Setup] Setting database uri for webapp/config.py" +echo "[C9Setup] Setting database uri and app location for webapp/config.py" sed -i "11s/.*/\'database-uri\': \"mysql+pymysql:\/\/root@localhost\/titan\",/" ~/workspace/webapp/config.py +#'app-location': "/home/ubuntu/workspace/webapp/", +sed -i "8s/.*/\'app-location\': \"\/home\/ubuntu\/workspace\/webapp\/\",/" ~/workspace/webapp/config.py echo "[C9Setup] Making sure everything can be runned" sudo chmod -R 777 *