Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Procfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
vite: vite dev
build: vite build --mode development --watch
nginx: nginx -c "$PWD/nginx-conf/main.conf" -p "$PWD"
nginx-host: nginx -g "daemon off;" -c "$PWD/nginx-conf/nginx.conf" -p "$PWD"
nginx-docker: docker run --rm --network=host -v "$PWD/nginx-conf":/etc/nginx/ -v "$PWD/.nginx":/etc/nginx/.nginx -v "$PWD/dist":/dist nginx:1.27.4
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Follow these steps to set up your development environment:

- Install Node.js 20.
- Install dependencies by running `npm install`.
- Install NGINX.
- Install docker or NGINX.
- Set up [ODK Central Backend](https://github.com/getodk/central-backend).
- You will need to create a user using an ODK Central Backend command line script.
- You will probably also want to promote that user to a sitewide administrator.
Expand Down
2 changes: 1 addition & 1 deletion docs/enketo.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ ODK Central Backend is already configured to connect with Enketo. The following
},
```

ODK Central Frontend is also already configured for Enketo as well. The following lines should already be in [`./nginx-conf/main.conf`](../nginx-conf/main.conf) to create a reverse proxy to Enketo.
ODK Central Frontend is also already configured for Enketo as well. The following lines should already be in [`./nginx-conf/nginx.conf`](../nginx-conf/nginx.conf) to create a reverse proxy to Enketo.

```
location /- {
Expand Down
1 change: 0 additions & 1 deletion nginx-conf/main.conf → nginx-conf/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
# This configuration file is for development only. For production, see
# https://github.com/getodk/central.

daemon off;
error_log stderr;
pid ./.nginx/nginx.pid;

Expand Down
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "nf start vite,nginx",
"dev:build": "nf start build,nginx",
"dev": " nf start vite,nginx-docker",
"dev-no-docker": "nf start vite,nginx-host",
"dev:build": "nf start build,nginx-docker",
"dev-no-docker:build": "nf start build,nginx-host",
"build": "vite build",
"eslint": "eslint --max-warnings 0 --cache --ext .js,.vue src/ bin/ test/ e2e-tests/ *.js",
"eslint:fix": "eslint --max-warnings 0 --fix --cache --ext .js,.vue src/ bin/ test/ *.js",
Expand Down