| author | Yves-Marie Haussonne <ymh.work+github@gmail.com> |
| Fri, 09 May 2014 18:35:26 +0200 | |
| changeset 656 | a84519031134 |
| parent 648 | c8b44a569549 |
| permissions | -rwxr-xr-x |
|
609
736fdedb7774
clean the test-suite folder. create necessary files in dev env
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
1 |
#!/bin/bash |
|
736fdedb7774
clean the test-suite folder. create necessary files in dev env
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
2 |
|
|
736fdedb7774
clean the test-suite folder. create necessary files in dev env
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
3 |
|
|
736fdedb7774
clean the test-suite folder. create necessary files in dev env
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
4 |
ROOTPATH="/srv/comt" |
|
736fdedb7774
clean the test-suite folder. create necessary files in dev env
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
5 |
TMPFILE=`mktemp` |
|
736fdedb7774
clean the test-suite folder. create necessary files in dev env
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
6 |
|
|
736fdedb7774
clean the test-suite folder. create necessary files in dev env
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
7 |
pushd "$ROOTPATH" > /dev/null |
|
736fdedb7774
clean the test-suite folder. create necessary files in dev env
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
8 |
|
|
648
c8b44a569549
Correct dev environment creation
Yves-Marie Haussonne <ymh.work+github@gmail.com>
parents:
642
diff
changeset
|
9 |
nohup bin/django testserver --settings=cm.settings_dev --noinput --addrport=0.0.0.0:<%= @testserver_port %> initial_data roles_generic test_suite > $TMPFILE 2>&1 & |
|
609
736fdedb7774
clean the test-suite folder. create necessary files in dev env
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
10 |
echo "$!|$TMPFILE" > /tmp/testserver.pid |
|
736fdedb7774
clean the test-suite folder. create necessary files in dev env
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
11 |
|
|
736fdedb7774
clean the test-suite folder. create necessary files in dev env
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
12 |
cat /tmp/testserver.pid |
|
736fdedb7774
clean the test-suite folder. create necessary files in dev env
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
13 |
|
|
736fdedb7774
clean the test-suite folder. create necessary files in dev env
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
14 |
popd > /dev/null |