Skip to content

Trying to run this with scotty results in the app reloading every request. #3

Description

@markhibberd

The command running is:

cabal exec -- ./tmp/.cabal-sandbox/bin/reserve -p 10080 main/dev.hs

Where dev.hs just runs 'scotty 10080 '.

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions