Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add documentation for ubuntu #3

Open
rahulsom opened this issue Jun 27, 2011 · 6 comments
Open

Add documentation for ubuntu #3

rahulsom opened this issue Jun 27, 2011 · 6 comments

Comments

@rahulsom
Copy link

This works on Ubuntu 10.04

apt-get update
echo "gem: --no-rdoc --no-ri" > /etc/gemrc
apt-get install -y ruby ruby-dev libruby build-essential ssl-cert git-core libopenssl-ruby

cd /tmp
wget http://production.cf.rubygems.org/rubygems/rubygems-1.4.2.tgz
tar zxf rubygems-1.4.2.tgz
ruby rubygems-1.4.2/setup.rb --no-format-executable

gem install chef

mkdir /etc/chef /root/chef-solo
wget -O /etc/chef/solo.rb https://gist.github.com/raw/847256/chef-gitorious-etc-solo.rb
wget -O /root/chef-solo/node.json https://gist.github.com/raw/847256/chef-gitorious-node-debian.json

cd /root/chef-solo
git clone git://github.com/rosenfeld/gitorious-cookbooks.git cookbooks
chef-solo

The differences being

  • We need git-core instead of git
  • We need to install libopenssl-ruby to avoid gem complaining about net/https
@rosenfeld
Copy link
Owner

Why are you using an ancient version of Ubuntu instead of a newer one? I can update the README with these notes on older Debian/Ubuntu, but I would like to know why would someone use an older version when a new one is available.

I don't like very much the idea because I don't intend to support older versions of any distribution since it is more work to maintain and test on recipes which leads to a bigger and confuse recipe code while I don't see any advantages... I don't know why couldn't someone upgrade to a more recent version of their distribution... Maintaining old versions doesn't worth in my opinion.

If you want Ubuntu 10.04 to be supported, please make the necessary changes and send a pull request for review. Otherwise, just upgrade to a newer version.

Thanks for the feedback!

@rahulsom
Copy link
Author

Ubuntu 10.04 is the latest LTS out there :)

@eithe
Copy link

eithe commented Jul 28, 2011

Are these instructions valid for Ubuntu 11.04? Or should I use those in the Readme.md that says they are for Debian?

Edit: Found https://github.com/makewhatis/gitorious-cookbooks

@rosenfeld
Copy link
Owner

eirikh, the instructions for latest Debian are likely to be the same for latest Ubuntu. But it seems some packages are named differently in Ubuntu 11.04... You can try it yourself, as I don't use Ubuntu (I consider it too unstable).

@engmsaleh
Copy link

Hi rahulsom,
Good work around but now I have these error when try to open the web app in my browser
I'm using Ubuntu 10.04 LTS on my VPS

Ruby on Rails application could not be started

here is the Backtrace:

#   File    Line    Location
0   /usr/lib/ruby/gems/1.8/gems/bundler-1.1.2/lib/bundler/source.rb     574     in `load_spec_files'
1   /usr/lib/ruby/gems/1.8/gems/bundler-1.1.2/lib/bundler/source.rb     372     in `local_specs'
2   /usr/lib/ruby/gems/1.8/gems/bundler-1.1.2/lib/bundler/source.rb     557     in `specs'
3   /usr/lib/ruby/gems/1.8/gems/bundler-1.1.2/lib/bundler/definition.rb     207     in `index'
4   /usr/lib/ruby/gems/1.8/gems/bundler-1.1.2/lib/bundler/definition.rb     202     in `each'
5   /usr/lib/ruby/gems/1.8/gems/bundler-1.1.2/lib/bundler/definition.rb     202     in `index'
6   /usr/lib/ruby/gems/1.8/gems/bundler-1.1.2/lib/bundler/index.rb  9   in `build'
7   /usr/lib/ruby/gems/1.8/gems/bundler-1.1.2/lib/bundler/definition.rb     198     in `index'
8   /usr/lib/ruby/gems/1.8/gems/bundler-1.1.2/lib/bundler/definition.rb     130     in `specs'
9   /usr/lib/ruby/gems/1.8/gems/bundler-1.1.2/lib/bundler/definition.rb     172     in `specs_for'
10  /usr/lib/ruby/gems/1.8/gems/bundler-1.1.2/lib/bundler/definition.rb     161     in `requested_specs'
11  /usr/lib/ruby/gems/1.8/gems/bundler-1.1.2/lib/bundler/environment.rb    23  in `requested_specs'
12  /usr/lib/ruby/gems/1.8/gems/bundler-1.1.2/lib/bundler/runtime.rb    11  in `setup'
13  /usr/lib/ruby/gems/1.8/gems/bundler-1.1.2/lib/bundler.rb    107     in `setup'
14  /usr/lib/ruby/gems/1.8/gems/passenger-3.0.7/lib/phusion_passenger/utils.rb  326     in `prepare_app_process'
15  /usr/lib/ruby/gems/1.8/gems/passenger-3.0.7/lib/phusion_passenger/classic_rails/application_spawner.rb  176     in `initialize_server'
16  /usr/lib/ruby/gems/1.8/gems/passenger-3.0.7/lib/phusion_passenger/utils.rb  572     in `report_app_init_status'
17  /usr/lib/ruby/gems/1.8/gems/passenger-3.0.7/lib/phusion_passenger/classic_rails/application_spawner.rb  174     in `initialize_server'
18  /usr/lib/ruby/gems/1.8/gems/passenger-3.0.7/lib/phusion_passenger/abstract_server.rb    204     in `start_synchronously'
19  /usr/lib/ruby/gems/1.8/gems/passenger-3.0.7/lib/phusion_passenger/abstract_server.rb    180     in `start'
20  /usr/lib/ruby/gems/1.8/gems/passenger-3.0.7/lib/phusion_passenger/classic_rails/application_spawner.rb  149     in `start'
21  /usr/lib/ruby/gems/1.8/gems/passenger-3.0.7/lib/phusion_passenger/spawn_manager.rb  219     in `spawn_rails_application'
22  /usr/lib/ruby/gems/1.8/gems/passenger-3.0.7/lib/phusion_passenger/abstract_server_collection.rb     132     in `lookup_or_add'
23  /usr/lib/ruby/gems/1.8/gems/passenger-3.0.7/lib/phusion_passenger/spawn_manager.rb  214     in `spawn_rails_application'
24  /usr/lib/ruby/gems/1.8/gems/passenger-3.0.7/lib/phusion_passenger/abstract_server_collection.rb     82  in `synchronize'
25  /usr/lib/ruby/gems/1.8/gems/passenger-3.0.7/lib/phusion_passenger/abstract_server_collection.rb     79  in `synchronize'
26  /usr/lib/ruby/gems/1.8/gems/passenger-3.0.7/lib/phusion_passenger/spawn_manager.rb  213     in `spawn_rails_application'
27  /usr/lib/ruby/gems/1.8/gems/passenger-3.0.7/lib/phusion_passenger/spawn_manager.rb  132     in `spawn_application'
28  /usr/lib/ruby/gems/1.8/gems/passenger-3.0.7/lib/phusion_passenger/spawn_manager.rb  275     in `handle_spawn_application'
29  /usr/lib/ruby/gems/1.8/gems/passenger-3.0.7/lib/phusion_passenger/abstract_server.rb    357     in `__send__'
30  /usr/lib/ruby/gems/1.8/gems/passenger-3.0.7/lib/phusion_passenger/abstract_server.rb    357     in `server_main_loop'
31  /usr/lib/ruby/gems/1.8/gems/passenger-3.0.7/lib/phusion_passenger/abstract_server.rb    206     in `start_synchronously'
32  /usr/lib/ruby/gems/1.8/gems/passenger-3.0.7/helper-scripts/passenger-spawn-server   99  

@rahulsom
Copy link
Author

@engmsaleh: I haven't tried installing gitorious of late. I found the
github fee for organizations trivial compared to the time I was spending in
getting gitorious to run correctly. I was a java person, and didn't want to
spend time learning ruby. Sorry!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants