Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linux Installation #258

Closed
melvinotieno opened this issue Aug 11, 2020 · 8 comments
Closed

Linux Installation #258

melvinotieno opened this issue Aug 11, 2020 · 8 comments

Comments

@melvinotieno
Copy link

I am using a linux OS specifically Fedora 32 and I do not know where to get started. In the docs it says i should first start puma-dev, how do i ago about that? Is there something i should first do and how do i do it?

@nonrational
Copy link
Member

https://github.com/puma/puma-dev#pre-built-binaries

You'll need to download and "install" puma-dev via pre-built binaries (placed in a directory on your $PATH) or build directly from source (and place $GOBIN_PATH on your $PATH). Given the limited support for linux, we do not currently provide a packaged installer (e.g. yum, apt, etc.).

@melvinotieno
Copy link
Author

https://github.com/puma/puma-dev#pre-built-binaries

You'll need to download and "install" puma-dev via pre-built binaries (placed in a directory on your $PATH) or build directly from source (and place $GOBIN_PATH on your $PATH). Given the limited support for linux, we do not currently provide a packaged installer (e.g. yum, apt, etc.).

@nonrational So how exactly do i download and install the pre-built binaries assuming that i'm a noob

@nonrational
Copy link
Member

nonrational commented Aug 11, 2020

... assuming that i'm a noob

FWIW I might advise sticking to rails s and http://localhost:3000 for now. The linux experience isn't automagic and getting the value out of puma-dev on linux will take a good deal of effort on your part.

That being said, if you're set on going down this path, #155 will be helpful. Please read and follow-up on that thread if you have additional questions. Below are instructions to manually install the puma-dev linux binary.

# download the archive containing the binary
wget https://github.com/puma/puma-dev/releases/download/v0.14/puma-dev-0.14-linux-amd64.tar.gz
# unpack the archive with tar
tar xvzf puma-dev-0.14-linux-amd64.tar.gz
# as root, move the unpacked binary into the "local" bin where non-default binaries commonly go
sudo mv puma-dev /usr/local/bin/
# run puma-dev and get the version
puma-dev -V
# clean up
rm puma-dev-0.14-linux-amd64.tar.gz

@melvinotieno
Copy link
Author

Thank you for the reply

FWIW I might advise sticking to rails s and http://localhost:3000 for now. The linux experience isn't automagic and getting the value out of puma-dev on linux will take a good deal of effort on your part.

Problem is i really want to test subdomains locally and this is the only solution that i can currently find as i do not want to edit the etc/host file

@nonrational
Copy link
Member

If you just want DNS to test sub/domains, I'd suggest using dnsmasq. It likely does what you want and there are plenty of blog posts about how to configure it.

@melvinotieno
Copy link
Author

Thank you, does exactly what i wanted.

@memon
Copy link

memon commented Jan 31, 2021

With homebrew now available on linux, what would be required to create a puma-dev brew recipe?

@nonrational
Copy link
Member

@memon done! puma/homebrew-puma#12

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants