Uprava pro test deployment
This commit is contained in:
parent
8d9de45514
commit
c5602f31bd
3 changed files with 4 additions and 4 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -11,7 +11,6 @@
|
||||||
/db-local.sqlite3*
|
/db-local.sqlite3*
|
||||||
/static
|
/static
|
||||||
/media
|
/media
|
||||||
/mamweb/static
|
|
||||||
/schema_*.pdf
|
/schema_*.pdf
|
||||||
|
|
||||||
# aux files
|
# aux files
|
||||||
|
|
5
Makefile
5
Makefile
|
@ -59,9 +59,9 @@ schema_all.pdf:
|
||||||
./manage.py graph_models -a -g | dot -Tpdf > schema_all.pdf
|
./manage.py graph_models -a -g | dot -Tpdf > schema_all.pdf
|
||||||
|
|
||||||
|
|
||||||
TEST_USER=${USER}
|
TEST_USER=test-mam
|
||||||
TEST_SERVER=atrey.karlin.mff.cuni.cz
|
TEST_SERVER=atrey.karlin.mff.cuni.cz
|
||||||
TEST_DIR=/akce/MaM/MaMweb/test/
|
TEST_DIR=/home/test-mam/mamweb-test/
|
||||||
|
|
||||||
# remote commands
|
# remote commands
|
||||||
HEAD=`git log --color=never |head -1|sed 's/.*commit //'`
|
HEAD=`git log --color=never |head -1|sed 's/.*commit //'`
|
||||||
|
@ -75,6 +75,7 @@ push_test:
|
||||||
git clean -f && \
|
git clean -f && \
|
||||||
cp mamweb/settings_test.py mamweb/settings.py && \
|
cp mamweb/settings_test.py mamweb/settings.py && \
|
||||||
make install && \
|
make install && \
|
||||||
|
./manage.py collectstatic --noinput && \
|
||||||
./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 ) && \
|
||||||
|
|
|
@ -18,7 +18,7 @@ DEBUG = True
|
||||||
|
|
||||||
TEMPLATE_DEBUG = True
|
TEMPLATE_DEBUG = True
|
||||||
|
|
||||||
ALLOWED_HOSTS = ['test.mam.mff.cuni.cz']
|
ALLOWED_HOSTS = ['*.mam.mff.cuni.cz']
|
||||||
|
|
||||||
# Database
|
# Database
|
||||||
# https://docs.djangoproject.com/en/1.7/ref/settings/#databases
|
# https://docs.djangoproject.com/en/1.7/ref/settings/#databases
|
||||||
|
|
Loading…
Reference in a new issue