Makefile 996 Bytes
Newer Older
1

2
data:
3
	sh nginx_install.sh
4

5 6 7 8 9 10 11 12 13 14 15 16

install_web2py:
	wget http://web2py.com/examples/static/web2py_src.zip
	unzip web2py_src.zip
	mv web2py/handlers/wsgihandler.py web2py/wsgihandler.py
	rm web2py_src.zip
	cp -i web2py/applications/vidjil/modules/defs.py.sample web2py/applications/vidjil/modules/defs.py

install_unit_tests:
	pip install unittest2
	pip install unittest-xml-reporting

17 18 19
unit: clean_unit_tests
	cd web2py; python web2py.py -S vidjil -M -R testRunner.py

20
install_web2py_standalone: install_web2py
21
	mkdir -p web2py/applications/vidjil/databases web2py/upload web2py/result
22
	sed -i 's@/var/vidjil@logs@' web2py/applications/vidjil/modules/defs.py
23
	sed -i '/mysql/d; /^DIR_/s/\/mnt\///;'  web2py/applications/vidjil/modules/defs.py
24

25 26 27 28
launch_web2py_localhost:
	python web2py/web2py.py -a 'password' -i 127.0.0.1 -p 8000   


29 30 31 32 33
launch_fuse_server:
	python fuse_server.py &
kill_fuse_server:
	pkill -f fuse_server.py

34 35 36 37
clean_unit_tests:
	rm -f web2py/test-reports/*.xml

cleanall: clean_unit_tests