Archive

Posts Tagged ‘configuration’

nginx reverse-proxying unicorn

After the experiments detailed in my last post, I faced today the need to have clean ruby/gems environments for each project I deploy on my Amazon EC2 server. Just like on my development machine, I wish to use <code>rvm</code> to make a separate gemset for each application.

However, to be able to run each app in its own environment, using a dedicated ruby-server instance is needed. Like described in my previous post, I was using Passenger to do that. Trying to deploy a ruby-1.9.2 / rails 3.1 app, I could not get Passenger Standalone installed due to some rake > 0.9.0 incompatibilities. This required to get the last version of the Passenger gem on GitHub, what I can’t do with my current knowledge.

Since I was using Passenger to make deployment easier, I was wondering if it was still the case. And I was feeling like it was getting a very big machine running for each app, while there was surely other solutions. And sure there is! There are other ruby production-class servers which can be used: Thin, Unicorn, and surely many others. And since I’m reverse-proxying through nginx, I can use any of them.

So, from now, I’ll be using Unicorn. It’s much more easy to get it running, no need to have a complex and hazardous installation process, just add it to the Gemfile, bundle install and get it running. I think it will do the trick for now.

nginx + Rails (through Passenger) on different Rubies + PHP, all this on Amazon AWS

Hi everybody!

It’s been quite a long time since my last post… I have lots to do, I’m working on a startup project and I’ve now another blog on which I have to write. I do not spend so much time developing, and almost not any more for Cocoa…

Due to my project I’ve been switching to web application technologies, and since I’m looking in the startup ecosystem, I’ve been looking at Ruby On Rails. After having played a little with Heroku, I wanted to start with a more customized hosting experience, so I’m now testing Amazon AWS service, through their free 1-year tier (allowing a sufficient cloud hosting for my purpose).

However, since I found the road quite long to reach a working config (I’m really newbie as sysadmin), I put all the things I went through on an Evernote page, and now I’m sharing them with you. It’s raw, I’ll try to refine all this with the time, but it may help nonetheless. And feel free to ask for help, I’ll do what I can 😉

Read more…

Good vibes on keyboard for Mac virtualizing Linux

After advancing blindfolded for a while, I finally put my hand on the good configuration for getting Ubuntu working nicely with my little Mac’s keyboard!

Needing to do some terminal’s configuration, I can hardly use the virtualized system without being able to type these little chars: |, \, {, }, [, ] and such bizarre things…

Just cutting to the end: here is what you want to see on your Ubuntu’s keyboard settings (may not be exactly the same in English, my Ubuntu is in French and I’m making the translation, sorry in advance):

  • Apple for keyboard model,
  • France-Apple Macintosh” for keymap (France is for me naturally, you’re supposed to get your own country there),
  • Edit keymap options:
    • key(s) changing the setting: I selected “Alt+Shift”,
    • key(s) selecting the 3rd level: I chose “Any Alt key”.

And now I’m very happy since I feel almost like on Mac OS X while typing on my virtualized Ubuntu machine!

Reminders on UNIX bases

Trying to set up a small Web server for development and testing in a VirtualBox virtual machine on my computer, I installed a text-only Debian. This now requires to look back in my souvenirs if I still have something on how to configure such an environment.

So here below are some tips that may help you solve problems when doing so, and that you may welcome to see took together here… (However, if you find errors or wish to complete them, do not hesitate to do so by commenting the posts.)

First tip: How to identify which services are set to start at launch?
I cannot give you the details right now, but you should surely have a look (understand do a web search) on /etc/rc0.d, /etc/rc1.d and so on. These folders contain links to service binaries set to launch (or not) depending on which configuration the server is launched in (for what I can remember, single-user, text login, graphical login, remote login? etc.).

%d bloggers like this: