Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lmammino/prerender-daemon
Installer to have prerender/prerender running as daemon on a ubuntu/debian machine
https://github.com/lmammino/prerender-daemon
installer prerender prerender-daemon seo seo-meta seo-optimization shell
Last synced: 2 months ago
JSON representation
Installer to have prerender/prerender running as daemon on a ubuntu/debian machine
- Host: GitHub
- URL: https://github.com/lmammino/prerender-daemon
- Owner: lmammino
- License: mit
- Created: 2015-01-11T20:05:27.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2017-01-19T19:43:14.000Z (almost 8 years ago)
- Last Synced: 2024-10-04T15:41:20.441Z (3 months ago)
- Topics: installer, prerender, prerender-daemon, seo, seo-meta, seo-optimization, shell
- Language: Shell
- Homepage: https://lmammino.github.io/prerender-daemon/
- Size: 6.84 KB
- Stars: 12
- Watchers: 4
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
prerender-daemon
================This repository will help you to install/uninstall [prerender](https://github.com/prerender/prerender) as a system services on a linux machine using [System V init scripts](http://refspecs.linuxfoundation.org/LSB_3.1.0/LSB-Core-generic/LSB-Core-generic/iniscrptact.html).
By using this installer you will be able to start/stop a prerender instance as service (daemon):
```bash
sudo service prerender start|stop|restart
```## Install
The installer assumes you've already installed [node.js](http://nodejs.org/), [npm](https://www.npmjs.org/)
Just clone the repository with
```bash
git clone https://github.com/lmammino/prerender-daemon.git
```Then run
```bash
sudo prerender-daemon/install.sh
```![Install script running example image](http://oi61.tinypic.com/os4v8k.jpg)
and it will do all the following **hard work** for you:
- Install prerender as global package
- Creates a dedicate `prerender` user that will be used to run the daemon
- Adds an init script to start the daemon
- Starts the daemonThe installation command support few parameters:
- `-h` or `--help`: Display the help
- `-v` or `--verbose`: more verbose output
- `-u` or `--uninstall`: Act as an unistaller removing prerender-daemon
- `-p` or `--node-prefix`: specify a custom node prefix (eg. "/usr")
- `-s` or `--server-script`: specify a custom server script that will be used to replace the default launch script (eg. to provide a custom configuration)## Advanced configuration
If you want to provide a custom script to run your prerender server (with custom configuration variables and plugins) you can use a custom `server.js` file (you have an example on [`config/server.js.dist`](/config/server.js.dist)) and pass its path as `--server-script` parameter to the installer script. This file will be copied and substituted to the default `server.js` script in your `node_modules` folder.
## Uninstall
Just run
```bash
sudo prerender-daemon/install.sh --uninstall
```To clean up everything that has been installed previously
## License
This code is distributed under the MIT license. Please refer to the [LICENSE](/LICENSE) file to read the full version.
Contributions are always (and really) appreciated :wink: