A somewhat secure Debian server with nginx, Passenger, rbenv for hosting Ruby on Rails with mail support and deployment with Capistrano

Basically this is a technical note to myself, in case I need to setup another server for running yet another personal Ruby on Rails project. And don't worry, I'm not going to replicate all nice guides out there, just filling in the gaps.

So let's start with the list of bookmarks I follow as a start. Note that in these tutorials mostly a user is used named 'deploy'. Typically I create a user per project and name databases etc. accordingly.

  1. Get security right first: My first 5 minutes on a server or essential security for Linux servers
  2. Then I get Rails up and running with this how to install Ruby on Rails with rbenv on Debian
  3. (in case you want to use the server as your remote git repo too) [Git setting up a …

Continue reading...

[Project] Introducing PortableRails3

An article, posted about 13 years ago filed in ruby, rails, software, tools, portablerails, installation, github, project & tech.

The InstantRails project is outdated and contains just too much IMHO ( Apache, PHP, who needs that when searching for Rails?). Other options to get Rails running require an installer (RailsInstaller or RubyInstaller )… and in some environments ( limited access accounts ) installing is not an option. And in yet other environments, you'd, well I'd, rather have a command line option, instead of an in-your-face installer that requires end-users to press 'next', 'next', 'next'…So that's why I created Portable Rails 3. It's name was 'inspired' (it's a boring name, I know) by the thoughtfully named Portable Git which makes an excelent companion.Installing is as simple as extracting (or cloning) and running start-cmd.batCreditsI didn't do much besides just throwing the binary stuff together. Stuff that went into the mix (I'll update when I feel its necessary):Ruby 1.9.2PDCurses [1]GDBM  [1]OpenSSL [1]readline [1]Zlib  [1]IconV [1]RubyGems 1.7.2 (updated with update –system )R…

Continue reading...

murb blog