# servepress

> A standalone wordpress server

Latest version **1.1.4** (published 2017-08-06) · ISC license · 0 weekly downloads

## Install

```sh
npm install servepress
pnpm add servepress
yarn add servepress
bun add servepress
```

Provides the command `servepress`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.4 |
| Published | 2017-08-06 |
| First published | 2017-08-06 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=6.0.0 |
| Dependencies | 7 |
| Known vulnerabilities | 0 (+4 in 1 direct dependencies) |
| Install scripts | no |
| Author | Aria Stewart |
| Maintainers | aredridel |
| Keywords | wordpress, cms |

## Links

- npm: https://www.npmjs.com/package/servepress
- Repository: https://github.com/aredridel/servepress
- Homepage: https://github.com/aredridel/servepress#readme
- Issues: https://github.com/aredridel/servepress/issues
- npm.io page: https://npm.io/package/servepress

## Dependencies (7)

- [yargs](https://npm.io/package/yargs.md) ^8.0.2
- [express](https://npm.io/package/express.md) ^3.21.2
- [async-to-gen](https://npm.io/package/async-to-gen.md) ^1.3.3
- [es6-promisify](https://npm.io/package/es6-promisify.md) ^5.0.0
- [systemd-socket](https://npm.io/package/systemd-socket.md) 0.0.0
- [express-php-fpm](https://npm.io/package/express-php-fpm.md) 0.0.32
- [@aredridel/express-htaccess-middleware](https://npm.io/package/@aredridel/express-htaccess-middleware.md) ^1.0.1

## Recent versions

- 1.1.4 (latest) — 2017-08-06
- 1.1.3 — 2017-08-06
- 1.1.2 — 2017-08-06
- 1.1.1 — 2017-08-06
- 1.1.0 — 2017-08-06
- 1.0.0 — 2017-08-06

## README

servepress
==========

Serve a wordpress instance from within nodejs using PHP-FPM

Requires PHP-FPM to be installed and running on the system already.

Use
----

```
PORT=8080 servepress /path/to/wordpress
```

Systemd socket activation is also supported, letting you run wordpress instances that are integrated into a proxy via a unix socket, rather than a port number, and using template units, can even instantiate these with a consistent pattern.

`servepress@.service`

```
[Service]
ExecStart=/usr/bin/env servepress %I
StandardOutput=syslog
User=haproxy
Group=haproxy
```

This lets you use `servepress@/path/to/wordpress.service` to enable the instance.

`servepress@.socket`
```
[Socket]
ListenStream=/var/lib/haproxy/%i.sock

[Install]
WantedBy=sockets.target
```

This binds `servepress@/path/to/wordpress.socket` to `/var/lib/haproxy/-path-to-wordpress.sock`, and can be proxied to there using an http proxy that supports unix socket backends, such as the ever-excellent [haproxy](http://www.haproxy.org)

---
_Source: https://npm.io/package/servepress · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
