Setting up Vagrant to mirror a heroku instance - ruby-on-rails

I am ramping up on vagrant and was wondering if there was a walkthrough / recipe to get a vagrant instance up and running to mirror a heroku bamboo stack (lenny 5.0 ree-1.8.7)
I am stuck on the first step of trying to find a lenny box.
Thanks guys,
Jonathan

If you're targeting Heroku's Cedar stack, you can try vagrant-heroku. I'm not sure what options exist for Aspen and Bamboo, but I would suspect that they may exist.

You'll probably need to build and package the box yourself. There are instructions on how to do this here: http://www.owengriffin.com/posts/2010/05/01/Vagrant_for_Debian_testing.html

You should take a look at veewee.
It makes building base boxes for Vagrant much simpler. There is even a template for Debian Lenny you can start with.

Related

Ubuntu 16.04 install php5.3

Hi I need to install php5.3 in my ubuntu 16.04 but I want to keep if it's possible the php7.0 versiĆ³n so I could change versions if i need it.
How can I do this?
Thanks
The "best" way to do this is to use Vagrant. When I say "best" I mean, most maintainable over time and that allows you to keep your current setup.
Install Vagrant
Install VirtualBox
Find a suitable box on the hashicorp site
Create your Vagrant file
Run vagrant up
Alternatively, you can build your own box without pushing it to, or needing to pull from, hashicorp. See the excellent "Packer" project which allows you to define your box using JSON: https://www.packer.io/intro/index.html
Good luck :-)
There are Github projects phpbrew or phpenv.But it's really hard to make them work
Oh, yeah, Vagrant or Docker still might help you, as well as VirtualBox (or something like it)

Ruby 2 and Rails 3 running on windows server

I haven't tried yet, but I would like to have a good information background before begin.
I must run a Rails application on a Windows server (I think 2008),I know that there is other better solutions, but the client has this server's type.
I think that the problem can be solved in one of these four manners (maybe more?):
Running Apache/Ngnix as a service
Running directly from the OS
Running as virtualization
Running on a different partition (e.g. installing for example Ubuntu)
I have read tons of post but without finding a good solution (for Rails 3 and Ruby 2 I have find anything).
Which solution you suggest me? Which one is more stable and performant?
Any documentation is appreciated.
For ruby on rails its better to run it on linux than windows , on windows you will face a lot of problems like when you going to install gems , best thing is to install a vmware on your windows machine , then run Ubuntu or any linux distro you like through vmware, also you can check this question to know more

Chef cookbooks to set up a Rails production server (CentOS)

So, I got tired of seting up production servers for my Rails apps all the time and decided to learn to use a tool that can simplify that process for me. I choose Chef-solo.
I've read the documentation and watched some tutorials, but I'm not realy sure I understend the process well, so I decided to go right to practice and learn on the way.
Now the real question: can someone provide me with a set of correctly working cookbooks to set up the server so I wouldn't need to reinvent the wheel myself?
OS - CentOS v.6.0-6.3
Software:
Development Tools (groupinstall)
git
Node.js
ImageMagick
Nginx and Unicorn
MySQL and PosgreSQL
Mail Server POP/SMTP/IMAP
RVM + ruby
MemCache
Think that's it.
Ofcource I need not only to install the packages, but also to configure them properly.
Any suggestions or additional info needed?
You can try looking at my repo at https://github.com/dmytro/chef-solo
I am using it to bootstrap Rails environments for myself.
Additionally it can be combined with Capistrano deployment. I use this in my capistrano recipes https://github.com/dmytro/capistrano-recipes
I've put blog post on these. Please lake a look too: http://dmytro.github.io/2013/05/21/easy_spawn_new_hosts_with_capistrano.html

Creating a Ruby on Rails environment on Windows, in a VM Vagrant Box

Is Vagrant a good solutions for creating a Rails environment in windows?
I have a powerful Windows 8 64bit desktop. I recently did a project with RoR and fell in love with it. As I found out, installing RoR on windows is just bleh; so I created a dual boot to ubuntu. As a creative developer, I find it rather difficult to get any of the "creative" done in ubuntu because of the lack of my typical creative tools.
I read a bit about a tool called Vagrant; however, I'm still unsure if it meets my requirements: adobe suite, sublime text, git, rails, rails friendly OS(mac?/ubuntu)
Typical duties: edit an image in photoshop(windows), drop it to project assets in VM?
Typical duties: push/pull to git; ssh to VPS server?
Also, I hear you can install mac os in the VM do you think thats a good option? (because I want to try their new OS)
Installing osx in Vagrant is probably possible but it would likely be quite hard, and its not really what vagrant is designed for.
As for your other questions vagrant sounds like the perfect fit.
With Vagrant you could start up an ubuntu vm and get your rails setup going. Then you could just forward a port on your local machine to the vm and load the rails site as if it were running locally on your windows PC. A quick google gets this vagrant box that looks like it might work for you - https://github.com/amaia/rails-starter-box
To work with the site you can just share a folder between the vm and your local machine which will allow you to edit images and code with your windows apps (Photoshop, sublime) so you don't actually need to install these in the ubuntu vm at all, and can pretty much work as normal.
Git is much the same... I prefer to SSH into the vagrant box and use git on the command line in ubuntu but you can just as easily use gitbash or tortoisegit from windows in the repo folder... works just as well.
A good alternative is, https://github.com/fgrehm/ventriloquist
"Ventriloquist combines Vagrant and Docker to give developers the ability to configure portable and disposable development VMs with ease. It lowers the entry barrier of building a sane working environment without the need to learn tools like Puppet or Chef."

Micro Cloud Foundry microconsole startup

So ive been looking through the init.d scripts and the bashrc file and cannot find where the microconsole binary is started on initial login. Can anyone tell me where it is?
Also, does MCF support running two microconsole instances at a time? My IaaS provider only supports SSH.
I am not entirely sure what you are trying to achieve here. Your trying to host MCF with an IaaS provider? like EC2 for example? If this is the case, I would recommend installing VCAP, MCF is not kept as up to date as the VCAP project.
It's pretty straight forward to install on Ubuntu 10.04, there are instructions on the Github project page, here ... https://github.com/cloudfoundry/vcap

Resources