summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
Diffstat (limited to 'package')
-rwxr-xr-xpackage/package_user_agent.sh7
-rwxr-xr-xpackage/pixelated-user-agent2
2 files changed, 6 insertions, 3 deletions
diff --git a/package/package_user_agent.sh b/package/package_user_agent.sh
index 983d37b3..4aa67a70 100755
--- a/package/package_user_agent.sh
+++ b/package/package_user_agent.sh
@@ -38,9 +38,12 @@ virtualenv $PIXELATED_VIRTUALENV_PATH
. $PIXELATED_VIRTUALENV_PATH/bin/activate
pip install --upgrade pip
pip install --upgrade setuptools
-python setup.py develop
-python setup.py install
deactivate
+cd $PIXELATED_VIRTUALENV_PATH
+for file in $(grep -l '/tmp/pix-user-agent-build' bin/*); do
+ sed -i '' 's|/tmp/pix-user-agent-build||' $file;
+done
+cd -
cd ..
cp package/pixelated-user-agent $BIN_PATH
diff --git a/package/pixelated-user-agent b/package/pixelated-user-agent
index b1177810..624825cc 100755
--- a/package/pixelated-user-agent
+++ b/package/pixelated-user-agent
@@ -4,4 +4,4 @@ PIXELATED_PATH=/var/lib/pixelated
. $PIXELATED_PATH/virtualenv/bin/activate
cd $PIXELATED_PATH/service/
-$PIXELATED_PATH/virtualenv/bin/python pixelated-user-agent
+$PIXELATED_PATH/virtualenv/bin/gunicorn user_agent:app -b 0.0.0.0:$USER_AGENT_PORT -D -p ~/.gunicorn.pid --log-file=~/.gunicorn.log