Makefile 1.05 KB
Newer Older
1

2
install: install_web2py
3

4 5 6 7 8 9 10
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

11
unit: clean_unit_tests
12
	python web2py/web2py.py -S vidjil -M -R testRunner.py
13

14
install_web2py_standalone: install_web2py
15
	mkdir -p web2py/applications/vidjil/databases web2py/upload/uploads web2py/result/results
16
	sed -i 's@/var/vidjil@logs@' web2py/applications/vidjil/modules/defs.py
17
	sed -i '/mysql/d; /^DIR_/s/\/mnt\///;'  web2py/applications/vidjil/modules/defs.py
18

19 20 21 22
launch_web2py_localhost:
	python web2py/web2py.py -a 'password' -i 127.0.0.1 -p 8000   


23 24 25 26 27
launch_fuse_server:
	python fuse_server.py &
kill_fuse_server:
	pkill -f fuse_server.py

28 29 30 31
clean_unit_tests:
	rm -f web2py/test-reports/*.xml

cleanall: clean_unit_tests
32

33
.PHONY: install install_web2py unit install_web2py_standalone launch_web2py_localhost launch_fuse_server kill_fuse_server clean_unit_tests cleanall