Skip to content

Commit f025472

Browse files
committed
Fix Build in POSIX Shell
1 parent d1ba4b5 commit f025472

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

deploy.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,17 @@
3333

3434
# Install the requirements
3535
task('python:venv:requirements', static function () {
36-
run('./.venv/bin/pip install -r requirements/base.txt');
36+
run('.venv/bin/pip install -r requirements/base.txt');
3737
});
3838

3939
task('python:generate_redirects', static function () {
4040
run('mkdir -p etc/nginx');
41-
run('./.venv/bin/python bin/generate_nginx_redirects > etc/nginx/server.redirects.conf');
41+
run('.venv/bin/python bin/generate_nginx_redirects > etc/nginx/server.redirects.conf');
4242
});
4343

44+
# Build the documentation
4445
task('python:build_documentation', static function () {
45-
run('./.venv/bin/python bin/build_docs');
46+
run('bash -lc ". .venv/bin/activate && bin/build_docs"');
4647
run('ln -sf docs/_build/html pub');
4748
});
4849

0 commit comments

Comments
 (0)