pledgecamp / pledgecamp-mail-tester

Capture Mailgun API calls and render emails for testing.
0 stars 0 forks source link

Live reload #1

Open sampullman opened 4 years ago

sampullman commented 4 years ago

The current live reload method doesn't work well, at least on macOS:

Install gin

go get github.com/codegangsta/gin
Run on port 4021, with a proxy from port 4020. This overrides the .env setting. Visiting localhost:4020 will trigger a rebuild if necessary, and automatically redirects to the app at localhost:4021

gin -a 4021 -p 4020 run mail.go

Find a better method, or just stick with manual reload using ./run.sh script and update the readme.