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
{{ message }}
This repository has been archived by the owner on Jun 10, 2018. It is now read-only.
Mostly just wanted to share an experience setting up nginx under launch_socket_server. Not really an issue, you can close this thread whenever.
First off I wanted to create a basic homebrew formula for launch_socket_server. I ran into some bizarre make install issue that only occurred in the homebrew build environment.
$ brew install launch_socket_server.rb
==> Downloading https://github.com/sstephenson/launch_socket_server/archive/v1.0
Already downloaded: /Library/Caches/Homebrew/launch_socket_server-1.0.0.tar.gz
==> make install
GOPATH=/private/tmp/launch_socket_server-zUBBM9/launch_socket_server-1.0.0 go build -o sbin/launch_socket_server src/launch_socket_server.go
# launch
cannot load DWARF output from $WORK/launch/_obj//_cgo_.o: decoding dwarf section info at offset 0x0: too short
make: *** [sbin/launch_socket_server] Error 2
Then I had to make sure to update the listen port to 8080 in the nginx.conf.
It was nice having nginx running as my own user and so could reload the config without sudo.
I was annoyed to find out there was no way to use environment variables in nginx.conf. I was hoping listen $LAUNCH_PROGRAM_TCP_ADDRESS would work.
I also tried to get unix sockets working to avoid hogging an internal port. I wasn't able to get that working either, its probably because I wasn't unlinking the socket before nginx started. I guess I would want to write a bash script wrapper that unlinked the socket and exec'd nginx.
Thanks!
The text was updated successfully, but these errors were encountered:
Hey @sstephenson,
Mostly just wanted to share an experience setting up nginx under
launch_socket_server
. Not really an issue, you can close this thread whenever.First off I wanted to create a basic homebrew formula for
launch_socket_server
. I ran into some bizarremake install
issue that only occurred in the homebrew build environment.I ended up having to call
go build
directly. https://github.com/josh/homebrew-github/blob/master/launch_socket_server.rb I couldn't figure out why. Maybe it had something to do with the$PWD
or$GOPATH
in that ENV.I was hoping you could get this on homebrew officially someday.
Moving along to using the stock nginx from
brew install nginx
. I ended up with the following launchd plist.Then I had to make sure to update the listen port to
8080
in thenginx.conf
.It was nice having nginx running as my own user and so could reload the config without
sudo
.I was annoyed to find out there was no way to use environment variables in
nginx.conf
. I was hopinglisten $LAUNCH_PROGRAM_TCP_ADDRESS
would work.I also tried to get unix sockets working to avoid hogging an internal port. I wasn't able to get that working either, its probably because I wasn't unlinking the socket before nginx started. I guess I would want to write a bash script wrapper that unlinked the socket and exec'd
nginx
.Thanks!
The text was updated successfully, but these errors were encountered: