##// END OF EJS Templates
makefile: updated with latest changes, added gunicorn serve
super-admin -
r5036:608b489e default
parent child Browse files
Show More
@@ -1,5 +1,7 b''
1 # required for pushd to work..
1 SHELL = /bin/bash
2 SHELL = /bin/bash
2
3
4
3 # set by: PATH_TO_OUTDATED_PACKAGES=/some/path/outdated_packages.py
5 # set by: PATH_TO_OUTDATED_PACKAGES=/some/path/outdated_packages.py
4 OUTDATED_PACKAGES = ${PATH_TO_OUTDATED_PACKAGES}
6 OUTDATED_PACKAGES = ${PATH_TO_OUTDATED_PACKAGES}
5
7
@@ -21,7 +23,7 b' test:'
21 make test-only
23 make test-only
22
24
23
25
24 .PHONY:test-clean
26 .PHONY: test-clean
25 ## run test-clean and tests
27 ## run test-clean and tests
26 test-clean:
28 test-clean:
27 rm -rf coverage.xml htmlcov junit.xml pylint.log result
29 rm -rf coverage.xml htmlcov junit.xml pylint.log result
@@ -37,6 +39,7 b' test-only:'
37 --cov-report=term-missing --cov-report=html \
39 --cov-report=term-missing --cov-report=html \
38 --cov=rhodecode rhodecode
40 --cov=rhodecode rhodecode
39
41
42
40 .PHONY: test-only-mysql
43 .PHONY: test-only-mysql
41 ## run tests against mysql
44 ## run tests against mysql
42 test-only-mysql:
45 test-only-mysql:
@@ -93,25 +96,38 b' web-build:'
93 done
96 done
94
97
95 .PHONY: pip-packages
98 .PHONY: pip-packages
96 ## show outdated packages
99 ## Show outdated packages
97 pip-packages:
100 pip-packages:
98 python ${OUTDATED_PACKAGES}
101 python ${OUTDATED_PACKAGES}
99
102
100
103
101 .PHONY: sdist
104 .PHONY: build
102 ## Build sdist
105 ## Build sdist/egg
103 sdist:
106 build:
104 python setup.py sdist
107 python -m build
105
108
106
109
107 .PHONY: dev-env
110 .PHONY: dev-env
108 ## make dev-env based on the requirements files and install develop of packages
111 ## make dev-env based on the requirements files and install develop of packages
109 dev-env:
112 dev-env:
113 pip install build virtualenv
110 pushd ../rhodecode-vcsserver/ && make dev-env && popd
114 pushd ../rhodecode-vcsserver/ && make dev-env && popd
111 pip wheel --wheel-dir=/home/rhodecode/.cache/pip/wheels -r requirements.txt -r requirements_test.txt -r requirements_debug.txt
115 pip wheel --wheel-dir=/home/rhodecode/.cache/pip/wheels -r requirements.txt -r requirements_rc_tools.txt -r requirements_test.txt -r requirements_debug.txt
112 pip install --no-index --find-links=/home/rhodecode/.cache/pip/wheels -r requirements.txt -r requirements_test.txt -r requirements_debug.txt
116 pip install --no-index --find-links=/home/rhodecode/.cache/pip/wheels -r requirements.txt -r requirements_rc_tools.txt -r requirements_test.txt -r requirements_debug.txt
113 pip install -e .
117 pip install -e .
114
118
119
120 .PHONY: dev-srv
121 ## run develop server instance, docker exec -it $(docker ps -q --filter 'name=dev-enterprise-ce') /bin/bash
122 dev-srv:
123 pserve --reload .dev/dev.ini
124
125 .PHONY: dev-srv-g
126 ## run gunicorn multi process workers
127 dev-srv-g:
128 gunicorn --workers=4 --paste .dev/dev_g.ini --bind=0.0.0.0:10020 --worker-class=gevent --threads=1 --config=configs/gunicorn_config.py --timeout=120
129
130
115 # Default command on calling make
131 # Default command on calling make
116 .DEFAULT_GOAL := show-help
132 .DEFAULT_GOAL := show-help
117
133
@@ -153,4 +169,3 b' show-help:'
153 } \
169 } \
154 printf "\n"; \
170 printf "\n"; \
155 }'
171 }'
156
General Comments 0
You need to be logged in to leave comments. Login now