Comments (5)
An excellent idea! I'll do that today.
On Thu, Jul 28, 2016 at 1:33 AM Kristoffer [email protected] wrote:
Being able to install puma-dev through Homebrew would be great. I'd be
happy to try creating a Homebrew formula that would make this possible, if
we could get a release with the changes from #3
#3 in the .tar.gz file.—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#4, or mute the thread
https://github.com/notifications/unsubscribe-auth/AAAABy0M3tzqEbH8N506vQ7CBlcM89SEks5qaGltgaJpZM4JW-zJ
.
from puma-dev.
Well, here is a super janky attempt at simplistic Homebrew formula that you can install manually:
class PumaDev < Formula
desc "A tool to manage rack apps in development with puma"
homepage "https://github.com/puma/puma-dev"
url 'https://github.com/puma/puma-dev.git', :using => :git
version '0.3.0' # I am taking a stab in the dark with this one here
depends_on "go" => :build
def install
ENV['GOPATH']=buildpath
system "go", "get", "github.com/constabulary/gb/..."
system "bin/gb build cmd/puma-dev"
bin.install "bin/puma-dev"
end
test do
require 'open3'
puma_dev_bin = "#{bin}/puma-dev"
::Open3.popen3("#{puma_dev_bin} -h") do |_, _, stderr|
assert_equal "Usage of #{puma_dev_bin}:", stderr.readlines.first.strip
end
end
end
You can just save that as puma_dev.rb
somewhere on your filesystem and run brew install /path/to/puma_dev.rb
and it #shouldIReallyHopeItWorksForSomeoneBesidesMe work. This uses the GitDownloadStrategy
, and I am not sure if the homebrew team likes using that in the official formula repo, so this probably would not be accepted there. You are welcome to use it if does the trick though.
P.S. I don't "Go" much, so I probably did all sorts of wrong here as far as that is concerned. Bracing for public shaming.
Edit: I consulted the README to snag a somewhat relevant version number
from puma-dev.
Turns out Homebrew doesn't want repositories that are newer than 30 days. I'll submit a PR once it's possible.
from puma-dev.
Ok, done! brew install puma/puma/puma-dev
!
from puma-dev.
The formula is over here: https://github.com/puma/homebrew-puma/blob/master/puma-dev.rb
from puma-dev.
Related Issues (20)
- Proxy doesn't work when domain is `local`
- Add a generic command to the proxy support HOT 1
- puma-dev not working in Ubuntu 22.04 with Rails 4 HOT 2
- "unexpected exit: No puma executable found for ruby system" HOT 1
- [zsh] [mac] On Mac OS puma-dev loads interactive zsh init files HOT 2
- Running in Docker Alpine results in `http: panic serving 172.17.0.1:42896: runtime error: invalid memory address or nil pointer dereference` HOT 1
- How to stop puma-dev without uninstalling?
- puma-dev -install can miss adding CA cert to Keychain HOT 1
- Ruby version mismatch between puma-dev and the Rails app HOT 1
- Allow multiple copies of the same app to run independently with different configurations HOT 2
- Not reaching app HOT 2
- Server's ip address could not be found.
- Instructions for puma-dev HTTPS with guard-livereload?
- How to use while offline? HOT 1
- `DNS Server failed: listen tcp 127.0.0.1:9253: bind: address already in use` error when starting the app with `puma-dev` command HOT 1
- Cannot configure puma-dev to use ipv6 proxy
- Curl::Err::HostResolutionError on WSL HOT 2
- Difference with Linux and MacOS for same code
- Changing the port is not picked up
- Request initiated in one app being responded to from another. HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from puma-dev.