justgook / development-server

1 stars 0 forks source link

Auto Reload

To enable auto-reload functionality, add somewhere in code:

    // Auto-reload
    (new EventSource('/reload')).onmessage = location.reload.bind(location)

Dev-Server

Deno server

deno run --allow-net --allow-read --allow-run --allow-write --allow-env devserver.ts

Go server

go run devserver.go