|
@ -85,7 +85,7 @@ push_test: |
|
|
./manage.py migrate --noinput && \
|
|
|
./manage.py migrate --noinput && \
|
|
|
(chown -Rf :mam . || true ) && \
|
|
|
(chown -Rf :mam . || true ) && \
|
|
|
(chmod -Rf g+w . || true ) && \
|
|
|
(chmod -Rf g+w . || true ) && \
|
|
|
echo "Reloading apache ... (You may have to start it manually on error!)" && \
|
|
|
echo 'Reloading apache ... (You may have to start it manually on error!)' && \
|
|
|
~/etc/apache2/apache2ctl -k reload && \
|
|
|
~/etc/apache2/apache2ctl -k reload && \
|
|
|
echo Done."
|
|
|
echo Done."
|
|
|
@echo "Test pushed to ${TEST_SERVER}:${TEST_DIR} successfully." |
|
|
@echo "Test pushed to ${TEST_SERVER}:${TEST_DIR} successfully." |
|
@ -95,7 +95,7 @@ push_prod: |
|
|
git tag deploy-prod-`date +%Y-%m-%d-%H-%M`-${USER} |
|
|
git tag deploy-prod-`date +%Y-%m-%d-%H-%M`-${USER} |
|
|
git push --all |
|
|
git push --all |
|
|
ssh ${PROD_USER}@${PROD_SERVER} -n -x "\
|
|
|
ssh ${PROD_USER}@${PROD_SERVER} -n -x "\
|
|
|
echo "Stopping apache ... (You may have to start it manually on error!)" && \
|
|
|
echo 'Stopping apache ... (You may have to start it manually on error!)' && \
|
|
|
~/etc/apache2/apache2ctl -k stop && \
|
|
|
~/etc/apache2/apache2ctl -k stop && \
|
|
|
cd ${PROD_DIR} && \
|
|
|
cd ${PROD_DIR} && \
|
|
|
./backup_prod_db.sh && \
|
|
|
./backup_prod_db.sh && \
|
|
@ -108,7 +108,7 @@ push_prod: |
|
|
./manage.py migrate --noinput && \
|
|
|
./manage.py migrate --noinput && \
|
|
|
(chown -Rf :mam . || true ) && \
|
|
|
(chown -Rf :mam . || true ) && \
|
|
|
(chmod -Rf g+w . || true ) && \
|
|
|
(chmod -Rf g+w . || true ) && \
|
|
|
echo "Starting apache ..." && \
|
|
|
echo 'Starting apache ... (You may have to start it manually on error!)' && \
|
|
|
~/etc/apache2/apache2ctl -k start && \
|
|
|
~/etc/apache2/apache2ctl -k start && \
|
|
|
echo Done."
|
|
|
echo Done."
|
|
|
@echo "Deployed to ${PROD_SERVER}:${PROD_DIR} successfully." |
|
|
@echo "Deployed to ${PROD_SERVER}:${PROD_DIR} successfully." |
|
|