From 3bd39b0e661786d75bdc12f213a7f6d248733828 Mon Sep 17 00:00:00 2001 From: Niels Simenon Date: Mon, 8 Apr 2019 03:40:08 +0200 Subject: [PATCH] Migration and seed are now post-install scripts. --- README.md | 8 +++----- package.json | 1 + 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 91886fd0..72553028 100644 --- a/README.md +++ b/README.md @@ -2,12 +2,10 @@ The latest releases from your favorite porn studios in one place. ## Install & run -Use [nvm](https://github.com/creationix/nvm) to install a recent version of NodeJS. +Use [nvm](https://github.com/creationix/nvm) to install a recent version of NodeJS. Download and unpack or clone this repository, and run the following in the root directory: `npm install` -`npm run seed` - `npm start` ### Configuration @@ -16,7 +14,7 @@ Do not modify `config/default.js`, but instead create a copy at `config/local.js ### Options `npm start -- --option value` -* `--site [side ID]`: Only show updates from a specific site. The site ID is typically the site name in lowercase and without cases or special characters. For example, Teens Like It Big is teenslikeitbig. +* `--site [site ID]`: Only show updates from a specific site. The site ID is typically the site name in lowercase and without cases or special characters. For example, Teens Like It Big is teenslikeitbig. * `--network [network ID]`: Show updates from all sites of a specific network. The network ID is composed similarly to the site ID. * `--after "[time]"`: Do not fetch scenes older than this. Example values are: `"1 month"`, `"2 weeks"`, `"3 years"`. * `--scene [URL]`: Try to retrieve scene details from its official site or network URL. @@ -28,7 +26,7 @@ Do not modify `config/default.js`, but instead create a copy at `config/local.js * `--debug`: Show full error stack trace. ## Supported networks & sites -233 sites on 14 networks +233 sites on 14 networks, continuously expanding! * **21Sextury** * Anal Teen Angels * Asshole Fever diff --git a/package.json b/package.json index 97722017..3e6f3deb 100644 --- a/package.json +++ b/package.json @@ -4,6 +4,7 @@ "description": "All the latest porn releases in one place", "main": "src/app.js", "scripts": { + "postinstall": "npm run migrate && npm run seed", "start": "node src/app.js", "eslint": "eslint src/", "eslint-watch": "esw --watch src/",