markbates / refresh

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

codesign for osx

pctj101 opened this issue · comments

Hi Mark,

I'm working on a gobuffalo project and on refresh, if I listen on non-localhost, I get the dialog:

Do you want the application “yourapp-build” to accept incoming network connections?

I found that the following sequence of commands clears the warning

sudo /usr/libexec/ApplicationFirewall/socketfilterfw --remove `pwd`/tmp/yourapp-build
sudo codesign --force --sign - `pwd`/tmp/payedge-build                            
sudo /usr/libexec/ApplicationFirewall/socketfilterfw --add `pwd`/tmp/yourapp-build             

And seems we can shove it into runner.go just before cmd is run:

func (m *Manager) runner() {
        var cmd *exec.Cmd
        for {
                <-m.Restart  // right after this

Any plans/thoughts on this topic?

Thanks!