Browse Source

Uprava pro test deployment

remotes/origin/feincms
Tomas Gavenciak 10 years ago
parent
commit
c5602f31bd
  1. 1
      .gitignore
  2. 5
      Makefile
  3. 2
      mamweb/settings_test.py

1
.gitignore

@ -11,7 +11,6 @@
/db-local.sqlite3*
/static
/media
/mamweb/static
/schema_*.pdf
# aux files

5
Makefile

@ -59,9 +59,9 @@ 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_DIR=/akce/MaM/MaMweb/test/
TEST_DIR=/home/test-mam/mamweb-test/
# remote commands
HEAD=`git log --color=never |head -1|sed 's/.*commit //'`
@ -75,6 +75,7 @@ push_test:
git clean -f && \
cp mamweb/settings_test.py mamweb/settings.py && \
make install && \
./manage.py collectstatic --noinput && \
./manage.py migrate --noinput && \
(chown -Rf :mam . || true ) && \
(chmod -Rf g+w . || true ) && \

2
mamweb/settings_test.py

@ -18,7 +18,7 @@ DEBUG = True
TEMPLATE_DEBUG = True
ALLOWED_HOSTS = ['test.mam.mff.cuni.cz']
ALLOWED_HOSTS = ['*.mam.mff.cuni.cz']
# Database
# https://docs.djangoproject.com/en/1.7/ref/settings/#databases

Loading…
Cancel
Save