-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:experius/SeoSnap
- Loading branch information
Showing
3 changed files
with
30 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
 | ||
|
||
#SeoSnap Beta | ||
|
||
Setup for the whole seosnap stack including dashboard, cache server and cache warmer used for prerendering and full | ||
page caching PWA's. | ||
|
||
|
@@ -13,6 +15,12 @@ git clone --recursive [email protected]:experius/SeoSnap.git | |
``` | ||
docker-compose up --build -d && docker-compose down | ||
``` | ||
Wait 5 seconds and then build again | ||
``` | ||
docker-compose up --build | ||
``` | ||
|
||
Everything should run now | ||
|
||
# Usage | ||
* Dashboard: http://127.0.0.1:8080/ (default login: snaptron/Sn@ptron1337) | ||
|
@@ -28,4 +36,25 @@ Cache directory ./cache | |
Make sure you have created a website via dashboard http://127.0.0.1:8080/seosnap/website/add/ | ||
``` | ||
docker-compose run cachewarmer <website id> | ||
``` | ||
``` | ||
|
||
## Nginx | ||
|
||
Check the nginx.conf in the example folder | ||
|
||
|
||
# How it works | ||
|
||
 | ||
|
||
### Dashboard | ||
In the dashboard you add the website url along with the website sitemap that you want to make 'SeoSnaps' off. | ||
|
||
### Crawler | ||
When the crawler is started it connects with the dashboard api. It uses scrapy to crawl the sitemap. The scrapy results are send to the administration/dashboard. Scrapy requests are send to the cache server. In a similar way that you would do a request to rendertron. | ||
|
||
### Cache Server | ||
The cache server is a simple file caching server. If a file exist with the content of the page it serves the html from the file. If not, it renders the requested url with rendertron and saves the html output in a file. To refresh the cache the cache-warmer uses PUT requests instead of GET. This will force update from the cache file. | ||
|
||
# Build with | ||
 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.