- Build the Gladius Blog
- Paste the blog files into the
public
folder - Use nginx to serve the blog on
localhost:XXXX
server {
listen 8001 default_server;
listen [::]:8001;
# this needs to be wherever you built the blog
root /Users/marcelo/Developer/gladius-service-worker/public;
index index.html;
server_name blog.gladius.io;
location / {
try_files $uri $uri/ $uri/index.html =404;
}
Use the browser to access localhost:XXXX
Helpful Developer Tool Options
- Chrome Dev Tools > Application:
- Service Workers (left menu) > Update on Reload (Update SW on every page reload)
- Clear storage (left menu):
- Unregistered service workers
- IndexedDB
- Cache storage
- Application cache
Don't want to deal with CORS?