anonymousLog in-Register  
Groups
Warning, this page is marked to be deleted!
Warning, this page is marked to be deleted!
Warning, this page is marked to be deleted!
Warning, this page is marked to be deleted!
Warning, this page is marked to be deleted!
Warning, this page is marked to be deleted!
Warning, this page is marked to be deleted!
Warning, this page is marked to be deleted!
Warning, this page is marked to be deleted!
Warning, this page is marked to be deleted!
Warning, this page is marked to be deleted!
Warning, this page is marked to be deleted!
Warning, this page is marked to be deleted!
Warning, this page is marked to be deleted!
Warning, this page is marked to be deleted!
Warning, this page is marked to be deleted!

Ruby on Linux Apache

Same page but  with a 'rename safe' link (used for external links)

Model Properties

In order to run Ruby-generated applications under Linux Apache, configure the following GeneXus properties:

  • Web Server Property: Select Apache HTTP Server
  • Web Root Property: URL used to run the application, with the following format:
    protocol://server:port/ApplicationName
  • Site directory seen from server: Physical path where the executables will be copied. It corresponds to the physical location of the Web Root property value.

The following image shows an example configuration:

Image:webservapachelin

Deployment in linux server

Currently, the deployment is manual so you have to follow the steps below:

  1. Set up the environment, by following the steps explained in Linux setup for running Ruby.
  2. Create a directory in the Linux server (the same as the one specified in the "Site Directory Seen from server" property), for example, /var/www/demo.
  3. Copy the entire content of the <KB_path>\Rubymodel\web directory to the Linux directory previously created.
    Important: In order to transfer the files from Windows to Linux, take into account that the files should be transferred in bin mode, or by using SSH (WinSCP) which uses that mode by default.
  4. In this paper we assume that you are using Apache 2.x.

    Copy the content of apache.xml file (generated by Ruby under <KB_path>\Rubymodel\web) into the httpd.conf Apache file (<Apache_Home>\conf directory )

    Note that apache.xml file contents are built from the "Web Root" and "Site Directory Seen from server" property values.
    Edit gxruby.cgi file and check that the Ruby interpreter is correctly referenced (otherwise, edit the file and change it to the correct location):

    #!/usr/bin/ruby
  5. Grant gxruby.cgi execution permissions: chmod +x gxruby.cgi

Related links

Linux setup for running Ruby

      

 
Created: 21 August 2008 12:23 PM by sjuarez Last update: 18 November 2009 10:34 AMbysjuarez