Well, I was messing with server setup for Ruby on Rails again. I had created a script to walk thru the steps but it still seems to be a combination of try this, get an error, google the error, apply the fix, and try it again. If it works go to next step, and if not; repeat over and over.
Now the best option for hosting Rails apps is Heroku but this is not always an option. A lot of the other ‘paid’ Rails hosting options have ‘one-click’ server setup. What I am talking about is setting up a brand new Ubuntu 12.* server for Ruby on Rails.
I will be updating my step-by-step server setup and posting that soon…
Today I want to talk about an awesome script that I found. It is called Railsready by Josh Frye. Out of the box it certainly kicks ass to use for setting up Rails ready server on ‘Nix or OSX.
Well, I wanted more, so I added more. I have taken Josh’s fine script and added some options that I wanted.
I now have it setup to ask what version Ruby you want installed. Right now that is a choice of 1.9.3 or 2.0.0. I am planning on setting that up to prompt for which version but I worry that users will enter a non-existing patch.
I have also added Nginx server install plus your choice of Unicorn, Thin or Passenger.
Next up is I am going to add option to choose from Mongodb, MySQL, and PostgreSQL.
Take a look at it and see what you think… https://github.com/brobertsaz/railsready
So I am torn with what to do with RailsCRM. From the beginning it was always intended to be OSS and minimal. Then I started to add on to it. I feel that it should be something easy to use and require minimal setup and not have all of the bells and whistles as those could be added by the user.
I really do not know if anybody has used it for themselves as I have no idea whether anybody has cloned the repo and done anything with it.
So, I thought lately that I will set it up as a SaaS and still allow people to clone the basic and advanced crm repos. But now I am thinking that I should do both. Maybe make the new version that I have been working on the advanced version as well as setting it up to use as a SaaS.
I have no intention of making money off of this but I could see that if it were popular as a SaaS that I would incur the costs of running it.
I know that either way I have a lot of improvements to make and doing that is a little hard with so many other things occupying my time.
Does anybody think there would be a need for an easy to use CRM SaaS?
My second intern, Steve, just posted this on his blog…..
“While this post is now a few months late due to life getting in the way, I figured I would document how my first year using Ruby on Rails went. In case you don’t want to read more I would sum it up as a huge success. I picked up my first Ruby on Rails book the end of April 2012……”
Check out the full article at http://www.stephentong.com/
Well, lots have changed recently. As the title says, new beginnings….
So, I have for a while been contemplating getting a real job. I had hoped to work remotely with somebody but that left me with few options.
I got an email 2 weeks ago from my blog from a recruiter. I know, great yet another recruiter email. The position sounded interesting and I replied to the recruiter. Long story short, the recruiter, David Claeys with Tech Recruitment, got me an interview with the company and I started last Wednesday.
I just started working at Unitedweb/Nextiva. I am the first Rails dev there. All of the other developers are either Java or Python/Django people. I am working on a legacy Rails app and I am to teach RoR to others there to work on the app with me.
One thing that I have to say is that Unitedweb/Nextiva is an awesome place to work. I was so worried about going back to working in an office for the first time in 5 years. Needless to say, it does not feel like I am working in an office and for that I am grateful.
What does this mean for Rebel Outpost? Business as usual. I will still continue to look for more contract work. I still want to be able to teach others and be a big part of the local Ruby community. So as far as I am concerned there is no end in site…
This one had me going for a bit so I figured that I would share my solution…..
I am using git-deploy for one of my clients for their two servers. It is quite similar to Capistrano but I like it better.
The git-deploy uses 3 files for deployment; after_push, before_restart, and restart. I needed to restart Unicorn after deployments but found that I could not do so without using sudo and the password for the user. This didn’t work in the “restart” file so I found myself manually restarting Unicorn after every deploy. Pain in the ass……
First run “visudo” from the server command line. It may require using sudo first. Then I added:
<server_name> ALL=NOPASSWD: /etc/init.d/unicorn restart, /etc/init.d/unicorn stop, /etc/init.d/unicorn start
This gave the <server_user> the privilege to run sudo /etc/init.d/unicorn restart without having to enter the password.
So I just needed to add run “sudo /etc/init.d/unicorn restart” to the git-deploy “restart file”