From e71862b4579e619f6401388fdcf231cc67c1fd7a Mon Sep 17 00:00:00 2001 From: wes Date: Tue, 21 Jun 2016 03:15:16 -0400 Subject: [PATCH] update makefile and appconfig --- Makefile | 2 ++ src/appconfig | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index c9b0b40..63b504b 100644 --- a/Makefile +++ b/Makefile @@ -9,6 +9,8 @@ default: cp -r ./src/templates/search.html ./build/templates/; cp -r ./src/{archive.py,openlibrary.py,predictions.py,search.py,website.py,textbookExceptions.py} ./build/; cp ./src/appconfig ./build/; + sed -i s,NAME_HERE,"$(SRV_NAME)",g ./build/appconfig; + sed -i s,ROOT_HERE,"$(SRV_ROOT)",g ./build/appconfig; clean: rm -r ./build; diff --git a/src/appconfig b/src/appconfig index d4bb73d..ed45588 100644 --- a/src/appconfig +++ b/src/appconfig @@ -1,2 +1,2 @@ -SERVER_NAME="localhost:8001" -APPLICATION_ROOT="/" +SERVER_NAME="NAME_HERE" +APPLICATION_ROOT="ROOT_HERE"