Live data from Hacker News

Get Ruby and Rails running on Ubuntu with one command

thechangelog.com

1–10 of 54 posts

Re: Get Ruby and Rails running on Ubuntu with one command

#3
Couldn't you just do:

wget https://github.com/joshfng/railsready/raw/master/railsready.... && bash ./railsready.sh

Besides the "1" command is really 4.

If you are setting up enough VM's that you need this you should have something like puppet installed and don't need this. If you are setting up one machine then do it by hand. Know the tools you have installed and keep track of them it will make deployment easier.

Re: Get Ruby and Rails running on Ubuntu with one command

#6
post #5

That is many commands, but it's only one line. And there's something in the inner-sysadmin in me that sees "curl http://example.com/foo.sh && ./foo.sh" and shudders. That sounds like a receipe for disaster.

Nothing wrong with reading the script before running it. :)

Re: Get Ruby and Rails running on Ubuntu with one command

#7
post #3

Couldn't you just do: wget https://github.com/joshfng/railsready/raw/master/railsready.... && bash ./railsready.sh Besides the "1" command is really 4. If you are setting up enough VM's that you need this you should have something like puppet installed and don't need this. If you are setting up one machine then do it by hand. Know the tools you have installed and keep track of them it will make deployment easier.

This isn't meant for huge deployments or rollouts. I use it to setup testing servers that mimic production boxes. And yea it should ready "setup rails with one line"

Re: Get Ruby and Rails running on Ubuntu with one command

#8
post #5

That is many commands, but it's only one line. And there's something in the inner-sysadmin in me that sees "curl http://example.com/foo.sh && ./foo.sh" and shudders. That sounds like a receipe for disaster.

Feel free to read the script before executing it :)

Re: Get Ruby and Rails running on Ubuntu with one command

#9
post #5

That is many commands, but it's only one line. And there's something in the inner-sysadmin in me that sees "curl http://example.com/foo.sh && ./foo.sh" and shudders. That sounds like a receipe for disaster.

It's a bitch rubygems are so fucked up on Debian/Ubuntu and that Ruby 1.9.2 is still not in Ubuntu's repo.

Otherwise that line would be:

     sudo aptitude install ruby1.9.2-full && sudo gem install rails

Re: Get Ruby and Rails running on Ubuntu with one command

#10
Oblig. bash.org, http://www.bash.org/?464385

   it only takes three commands to install Gentoo
   cfdisk /dev/hda && mkfs.xfs /dev/hda1 && mount /dev/hda1 /mnt/gentoo/ && chroot /mnt/gentoo/ && env-update && . /etc/profile && emerge sync && cd /usr/portage && scripts/bootsrap.sh && emerge system && emerge vim && vi /etc/fstab && emerge gentoo-dev-sources && cd /usr/src/linux && make menuconfig && make install modules_install && emerge gnome mozilla-firefox openoffice && emerge grub && cp /boot/grub/grub.conf.sample /boot/grub/grub.conf && vi /boot/grub/grub.conf && grub && init 6
   that's the first one
Post reply on HN