Moving ports tree between machines

I’m using FreeBSD on many servers dedicated mostly to network management and monitoring. Due to many restrictions I often need to move ports updates as an tgz archive. I’ve learned that You should delete old ports tree before unpacking new one. Otherwise You will encounter errors like => Patch patch-eval.c failed to apply cleanly.. Old …

Update to JOE’s syntax file for RHTML

I’ve updated this file – I did not know that ruby code in result was processed as normal text. It become visible when I used some more complicated (in terms of ruby code) template. I know more now about writing syntax files for JOE and maybe I try to make it even more useful. URL …

JOE and Rails or how to color RHTML

I’m using JOE as my text editor. I’m used to it and it is hard to change own habits. When I have got interested in Rails, I tried some other editors with support for Rails/Ruby (for UNIX text terminals). I was very close to use VIM with plugins for Rails. But to much habits from …

Rails application creation – script

I was recently starting many new Rails application. I was doing some tests, and I needed setup new Rails applications ready to run with Subversion. I’m a lazy person (for most IT folks it is a huge advantage ;)) ) so I wrote script to automate this task. Now I want to share with my …

Starting Rails application on FreeBSD – script

I was asked to publish whole startup script and I could do, so go fetch it from http://nhw.pl/download/railsapp.sh and customize it a bit. /RAILS/APP/ROOT – it is directory where Rails application root is PORT – port on which You want to run application (default 3000) LOW_PRIV_UID – UID (numeric) of user who will be owning …