You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When going to the page it just reloads on every request (a sample):
Interrupted.
Setting phasers to stun... (port 10080) (ctrl-c to quit)
GET /images/aaa.png
Accept: image/webp,*/*;q=0.8
Status: 200 OK 0.000052s
Interrupted.
Setting phasers to stun... (port 10080) (ctrl-c to quit)
GET /css/reset.css
Accept: text/css,*/*;q=0.1
Status: 200 OK 0.000068s
Interrupted.
Setting phasers to stun... (port 10080) (ctrl-c to quit)
GET /css/typography.css
Accept: text/css,*/*;q=0.1
Status: 200 OK 0.00006s
Interrupted.
Setting phasers to stun... (port 10080) (ctrl-c to quit)
GET /css/base.css
Accept: text/css,*/*;q=0.1
Status: 200 OK 0.000062s
Interrupted.
Any ideas, I assume it is something to do with how I am starting scotty maybe.
The text was updated successfully, but these errors were encountered:
Currently we go for the conservative approach of always reloading on every new request. This has the advantage that we never serve a stale application.
If we only want to reload on modifications we need to decide what files to watch (probably making it configurable). I just pushed some mock up code that watches *.hs and *.lhs files. @markhibberd would you be interested to give that a try and provide feedback? The code is on branch reload-on-modifications (see #4).
The command running is:
Where dev.hs just runs 'scotty 10080 '.
When going to the page it just reloads on every request (a sample):
Any ideas, I assume it is something to do with how I am starting scotty maybe.
The text was updated successfully, but these errors were encountered: