Re: Camping tutorials for education?

2009-06-10 Thread David Susco
I'm trying to get passenger working presently, once I do I'll let you
know how the rest of it goes.

When I try to load the module in the apache conf I get the following error:

Cannot load 
/usr/lib/ruby/gems/1.8/gems/passenger-2.2.2/ext/apache2/mod_passenger.so
into server: 
/usr/lib/ruby/gems/1.8/gems/passenger-2.2.2/ext/apache2/mod_passenger.so:
failed to map segment from shared object: Permission denied

I'm assuming it's an SELinux problem, has anyone run into it before?
I've done the following already, so it hasn't helped:
http://www.modrails.com/documentation/Users%20guide.html#_the_apache_error_log_says_that_the_spawn_manager_script_does_not_exist_or_that_it_does_not_have_permission_to_execute_it

Dave


On Tue, Jun 9, 2009 at 11:28 AM, Jonathan Grollli...@groll.co.za wrote:
 Hi David,

 On Tue, Jun 09, 2009 at 09:29:22AM -0400, David Susco wrote:

 I'd definitely be interested in seeing any work you do with this.
 Having it up on the wiki would be nice too.

 I'm still trying to figure out deployment with camping 1.5. I've
 experimented with 1.9.316 and rack but have yet to get an app to work
 with that. The same with Picnic.

 Been meaning to write a quick overview of how I did it for you (as
 documentation is super sparse still). Briefly:

 (1) Read the passenger user guide at:
 http://www.modrails.com/documentation/Users%20guide.html

 I installed passenger from a gem but see the user's guide if you need
 to install on debian using apt (it is in the Ubuntu repositories already).
 Similarly rack is from a gem, and I use the same version of camping as
 you (from Judofyr's gem server).

 (2) Try and get the hello world from the passenger user guide to
 work for you.

 (3) Then try and get the blog example working that is shipped with
 camping. Here is a config.ru that works for that:

 require 'rubygems'
 require 'rack'
 require 'camping'
 require 'blog'
 Blog::Models::Base.establish_connection :adapter = sqlite3,
 :database = /home/jonathan/.camping.db
 run Blog

 Change the database path to one you have on your system. You may need
 something like:
 Blog::Models.create_schema :assume = (Blog::Models::Post.table_exists? ?
 1.0 : 0.0)

 before run blog if your sqlite database doesn't yet have the schema
 for the blog example.

 (4) And the apache config that I used was something like:

 Directory /
              Options ExecCGI FollowSymLinks
                 AllowOverride all
                    Allow from all
 /Directory
 VirtualHost *:80
    ServerName www.rackexample.com
    DocumentRoot /var/www/blog/public
 /VirtualHost

 You may need to edit your hosts file so that www.rackexample.com
 resolves to your apache server.

 (5) Let us know how it goes...

 Regards,
 Jonathan
 ___
 Camping-list mailing list
 Camping-list@rubyforge.org
 http://rubyforge.org/mailman/listinfo/camping-list




-- 
Dave
___
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list


camping alive?

2009-06-10 Thread in-seok hwang
hi ,all

i used camping1.5.180, but i thing camping is dead.

When camping 2.0 coming?

this url(http://camping.rubyforge.org/files/README.html) is no more update?

this url(http://github.com/why/camping/tree/master) is main repository?
right?

why main repository's changelog is stop in ver1.6

This development has been stopped because I of my curiosity.

but, i love camping web-framework.

Someone please tell me camping is alive.

Thank you for reading my artcle.
___
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list

Re: Release?

2009-06-10 Thread Magnus Holm
Oh, sorry. I totally forgot about this.
Are we absolutely sure that 1.5.180 is stable enough to be pushed out to
Rubyforge?

//Magnus Holm


On Tue, Feb 10, 2009 at 19:24, Julik Tarkhanov
julian.tarkha...@gmail.comwrote:


 On Feb 10, 2009, at 8:41 AM, Magnus Holm wrote:

 Yes, we should release 2.0 soon...

 Meanwhile you can always download 2.0 using my repo:
 gem install camping --source http://gems.judofyr.net/


 I can, but people who might need my apps can't and won't look for
 non-official gem servers.Is there a possibility for someone to push the
 solidified, old-school 1.5.180 to Rubyforge?
 Before 2.0 is released? It's 2 minutes work, seriously...
   --
 Julik Tarkhanov
 m...@julik.nl






 ___
 Camping-list mailing list
 Camping-list@rubyforge.org
 http://rubyforge.org/mailman/listinfo/camping-list

___
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list

Re: Release?

2009-06-10 Thread Julik Tarkhanov


On 10 Jun 2009, at 23:49, Magnus Holm wrote:


Oh, sorry. I totally forgot about this.

Are we absolutely sure that 1.5.180 is stable enough to be pushed  
out to Rubyforge?



For about a year I think, and if not it can be followed by 1.5.181  
right?

--
Julik Tarkhanov
m...@julik.nl





___
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list


Re: Camping tutorials for education?

2009-06-10 Thread David Susco
OK, good to know. What the latest version I can use?

Dave

On Wed, Jun 10, 2009 at 5:46 PM, Magnus Holmjudo...@gmail.com wrote:
 Unfornately, Camping doesn't (yet) work on Ruby 1.9.1. Unless someone else want to try
 now, I'm going to have a look at it *after* 2.0 is released.

 //Magnus Holm


 On Wed, Jun 10, 2009 at 22:30, David Susco dsu...@gmail.com wrote:

 I've disabled SELinux to see if I could get any farther.

 I managed to get passenger installed and working, however a fancy
 passenger generated page is telling me the app couldn't be started due
 to this error:

 `require':
 /usr/local/lib/ruby/gems/1.9.1/gems/camping-1.9.316/lib/camping.rb:11:
 syntax error, unexpected tLABEL (SyntaxError)
 p[0]==?/?...@root+p:p end;def URL c='/',*a;c=R(c,...

 It's the same thing when I try to rackup the .ru file, and the same
 when I try to execute this little bit of code:

 #!/usr/bin/env ruby -rubygems
 gem 'camping', '=1.9.316'
 %w(rack camping).each { |lib| require lib }
 puts 'done'

 I'm tried reinstalled camping 1.9.316 but that didn't change anything.
 Any ideas?

 Dave

 On Wed, Jun 10, 2009 at 10:39 AM, David Suscodsu...@gmail.com wrote:
  I'm trying to get passenger working presently, once I do I'll let you
  know how the rest of it goes.
 
  When I try to load the module in the apache conf I get the following
  error:
 
  Cannot load
  /usr/lib/ruby/gems/1.8/gems/passenger-2.2.2/ext/apache2/mod_passenger.so
  into server:
  /usr/lib/ruby/gems/1.8/gems/passenger-2.2.2/ext/apache2/mod_passenger.so:
  failed to map segment from shared object: Permission denied
 
  I'm assuming it's an SELinux problem, has anyone run into it before?
  I've done the following already, so it hasn't helped:
 
  http://www.modrails.com/documentation/Users%20guide.html#_the_apache_error_log_says_that_the_spawn_manager_script_does_not_exist_or_that_it_does_not_have_permission_to_execute_it
 
  Dave
 
 
  On Tue, Jun 9, 2009 at 11:28 AM, Jonathan Grollli...@groll.co.za
  wrote:
  Hi David,
 
  On Tue, Jun 09, 2009 at 09:29:22AM -0400, David Susco wrote:
 
  I'd definitely be interested in seeing any work you do with this.
  Having it up on the wiki would be nice too.
 
  I'm still trying to figure out deployment with camping 1.5. I've
  experimented with 1.9.316 and rack but have yet to get an app to work
  with that. The same with Picnic.
 
  Been meaning to write a quick overview of how I did it for you (as
  documentation is super sparse still). Briefly:
 
  (1) Read the passenger user guide at:
  http://www.modrails.com/documentation/Users%20guide.html
 
  I installed passenger from a gem but see the user's guide if you need
  to install on debian using apt (it is in the Ubuntu repositories
  already).
  Similarly rack is from a gem, and I use the same version of camping as
  you (from Judofyr's gem server).
 
  (2) Try and get the hello world from the passenger user guide to
  work for you.
 
  (3) Then try and get the blog example working that is shipped with
  camping. Here is a config.ru that works for that:
 
  require 'rubygems'
  require 'rack'
  require 'camping'
  require 'blog'
  Blog::Models::Base.establish_connection :adapter = sqlite3,
  :database = /home/jonathan/.camping.db
  run Blog
 
  Change the database path to one you have on your system. You may need
  something like:
  Blog::Models.create_schema :assume = (Blog::Models::Post.table_exists?
  ?
  1.0 : 0.0)
 
  before run blog if your sqlite database doesn't yet have the schema
  for the blog example.
 
  (4) And the apache config that I used was something like:
 
  Directory /
               Options ExecCGI FollowSymLinks
                  AllowOverride all
                     Allow from all
  /Directory
  VirtualHost *:80
     ServerName www.rackexample.com
     DocumentRoot /var/www/blog/public
  /VirtualHost
 
  You may need to edit your hosts file so that www.rackexample.com
  resolves to your apache server.
 
  (5) Let us know how it goes...
 
  Regards,
  Jonathan
  ___
  Camping-list mailing list
  Camping-list@rubyforge.org
  http://rubyforge.org/mailman/listinfo/camping-list
 
 
 
 
  --
  Dave
 



 --
 Dave
 ___
 Camping-list mailing list
 Camping-list@rubyforge.org
 http://rubyforge.org/mailman/listinfo/camping-list


 ___
 Camping-list mailing list
 Camping-list@rubyforge.org
 http://rubyforge.org/mailman/listinfo/camping-list




-- 
Dave
___
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list