(In your Dockerfile)
ADD https://github.com/groovenauts/magellan-proxy/releases/download/v0.1.4/magellan-proxy-0.1.4_linux-amd64 /usr/app/magellan-proxy
RUN chmod +x /usr/app/magellan-proxy
Prepend "magellan-proxy" before your application's commandline.
ex1)
CMD ["bundle", "exec", "puma", "--port", "80"]
↓
CMD ["/usr/app/magellan-proxy", "bundle", "exec", "puma", "--port", "80"]
ex2)
CMD bundle exec rails server production --port 80
↓
CMD /usr/app/magellan-proxy bundle exec rails server production --port 80
You can specify port and concurrency number.
CMD ["/usr/app/magellan-proxy", "--port", "8080", "--num", "5", "bundle", "exec", "puma", "-t", "5:5", "--port", "8080"]
go get github.com/groovenauts/magellan-proxy
At first, install gom.
go get github.com/mattn/gom
gom build
make build
make release
or
make prerelease
and go to GitHub release page (https://github.com/groovenauts/magellan-proxy/releases) to fill release notes.
MIT See LICENSE.txt.