summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorDuda Dornelles <ddornell@thoughtworks.com>2014-08-22 14:26:38 -0300
committerDuda Dornelles <ddornell@thoughtworks.com>2014-08-22 14:26:38 -0300
commit004295c4302ad4d2400a708e77f05cf53a116cae (patch)
tree69c4b82425c25ea2086728b16db354ee590f57b2 /package
parent7109b03fe1f543fa61242827350b86dd93ba51f8 (diff)
fixing virtualenv shebangs when building the .deb and script to start to run unicorn
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