Skip to content

Commit

Permalink
README
Browse files Browse the repository at this point in the history
  • Loading branch information
rfay committed Jan 29, 2025
1 parent a29c34c commit 7de6b1d
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,28 @@
# test-nodejs
Trival Node.js webserver used exclusively for testing DDEV

This repo is used in DDEV automated testing.

It was created with

`ddev npm install express`

And then the `server.js` was added. `server.js` is a trivial express-based server that handles a couple of URLs for testing.

The .ddev/config.yaml needs this:

```yaml
type: generic
webserver_type: generic

web_extra_exposed_ports:
- name: node-example
container_port: 3000
http_port: 80
https_port: 443

web_extra_daemons:
- name: "node-example"
command: "node server.js"
directory: /var/www/html
```

0 comments on commit 7de6b1d

Please sign in to comment.