Skip to content

Commit

Permalink
[FEATURE] Updated dependencies and the readme for release 0.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
egordm committed Feb 25, 2020
1 parent 3607729 commit a544a09
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 6 deletions.
42 changes: 39 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Setup for the whole seosnap stack including dashboard, cache server and cache wa
page caching PWA's.

# Installation
* Pull the repo
* Pull the repo (*note: the pull is recursive*)
```
git clone --recursive git@github.com:experius/SeoSnap.git
```
Expand All @@ -27,5 +27,41 @@ Cache directory ./cache
## Run cache warmer
Make sure you have created a website via dashboard http://127.0.0.1:8080/seosnap/website/add/
```
docker-compose run cachewarmer <website id>
```
docker-compose run cachewarmer cache <website id>
```

## Usage cache warmer [See](https://github.com/experius/SeoSnap-Cache-Warmer/blob/master/README.md)
### Commands
#### Cache
Handles caching of pages associated to given website
```
Usage: crawl.py cache [OPTIONS] WEBSITE_IDS
Options:
--follow_next BOOLEAN Follows rel-next links if enabled
--recache BOOLEAN Recached all pages instead of not yet cached ones
--use_queue BOOLEAN Cache urls from the queue instead of the sitemap
--load BOOLEAN Whether already loaded urls should be scraped instead
--help Show this message and exit.
```

#### Clean
Handles cleaning of the dashboard queue
```
Usage: crawl.py clean [OPTIONS] WEBSITE_IDS
Options:
--help Show this message and exit.
```

### Examples
```
# Cache the sitemap of website 1
docker-compose run cachewarmer cache 1
# Cache requests in queue for websites 1 and 2
dc run cachewarmer cache 1,2 use_queue=true
# Clean the queue for websites 1 and 2
docker-compose run cachewarmer clean 1,2
```
2 changes: 1 addition & 1 deletion seosnap-cacheserver
Submodule seosnap-cacheserver updated 1 files
+2 −1 README.md
2 changes: 1 addition & 1 deletion seosnap-cachewarmer
Submodule seosnap-cachewarmer updated 1 files
+26 −3 README.md
2 changes: 1 addition & 1 deletion seosnap-dashboard

0 comments on commit a544a09

Please sign in to comment.