{"id":382,"date":"2011-02-17T11:14:19","date_gmt":"2011-02-17T16:14:19","guid":{"rendered":"http:\/\/www.1oc.com\/blog\/?p=382"},"modified":"2011-07-14T22:22:49","modified_gmt":"2011-07-15T02:22:49","slug":"deploying-genexus-applications-on-centos-with-ruby-1-9-and-mysql-part-2","status":"publish","type":"post","link":"http:\/\/blog.1oc.com\/?p=382","title":{"rendered":"Deploying GeneXus applications on CentOS with Ruby 1.9 and mysql (part 2)"},"content":{"rendered":"<p>If you haven&#8217;t&#8217; read it, make sure to first, take a look at the <a href=\"http:\/\/blog.1oc.com\/?p=370\">part 1<\/a><\/p>\n<p>What we&#8217;ll going to do today is actually create a GeneXus application with Ruby and mySql and deply (an run) it under CentOS platform<\/p>\n<p>For this example we are going to install an run GeneXus &#8220;GoogleVisualization&#8221; Example.<\/p>\n<p>You can download the KB from genexus open server.<\/p>\n<p>First we recommend we run it under the Default Ruby web-brick (local) environment. This is your development environment.<\/p>\n<p>And the have a Deployment environment, in my case I&#8217;ve named it &#8220;Ruby-Hosted&#8221;.<\/p>\n<p><a href=\"http:\/\/blog.1oc.com\/wp-content\/uploads\/2011\/02\/Screen-shot-2011-02-08-at-11.07.31-AM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-384\" title=\"Screen shot 2011-02-08 at 11.07.31 AM\" src=\"http:\/\/blog.1oc.com\/wp-content\/uploads\/2011\/02\/Screen-shot-2011-02-08-at-11.07.31-AM-292x300.png\" alt=\"\" width=\"292\" height=\"300\" srcset=\"http:\/\/blog.1oc.com\/wp-content\/uploads\/2011\/02\/Screen-shot-2011-02-08-at-11.07.31-AM-292x300.png 292w, http:\/\/blog.1oc.com\/wp-content\/uploads\/2011\/02\/Screen-shot-2011-02-08-at-11.07.31-AM.png 342w\" sizes=\"auto, (max-width: 292px) 100vw, 292px\" \/><\/a><\/p>\n<p>On this new environment you have to configure the following options:<\/p>\n<p>Under DataStore, configure the credentials for your &#8220;production&#8221; mySQL database.<\/p>\n<p><a href=\"http:\/\/blog.1oc.com\/wp-content\/uploads\/2011\/02\/Screen-shot-2011-02-08-at-11.11.36-AM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-385\" title=\"Screen shot 2011-02-08 at 11.11.36 AM\" src=\"http:\/\/blog.1oc.com\/wp-content\/uploads\/2011\/02\/Screen-shot-2011-02-08-at-11.11.36-AM-271x300.png\" alt=\"\" width=\"271\" height=\"300\" srcset=\"http:\/\/blog.1oc.com\/wp-content\/uploads\/2011\/02\/Screen-shot-2011-02-08-at-11.11.36-AM-271x300.png 271w, http:\/\/blog.1oc.com\/wp-content\/uploads\/2011\/02\/Screen-shot-2011-02-08-at-11.11.36-AM.png 402w\" sizes=\"auto, (max-width: 271px) 100vw, 271px\" \/><\/a><\/p>\n<p>Under Generators, you have to change from &#8220;Webbrik HTTP server&#8221; to &#8220;Apache HTTP Server&#8221;.<\/p>\n<p>On &#8220;Web Root&#8221;, the actual URL to the deployed website<\/p>\n<p>and on &#8220;Site directory..&#8221; the full path of your application from &#8220;inside&#8221; the server.<\/p>\n<p><a href=\"http:\/\/blog.1oc.com\/wp-content\/uploads\/2011\/02\/Screen-shot-2011-02-08-at-11.13.57-AM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-386\" title=\"Screen shot 2011-02-08 at 11.13.57 AM\" src=\"http:\/\/blog.1oc.com\/wp-content\/uploads\/2011\/02\/Screen-shot-2011-02-08-at-11.13.57-AM-300x103.png\" alt=\"\" width=\"300\" height=\"103\" srcset=\"http:\/\/blog.1oc.com\/wp-content\/uploads\/2011\/02\/Screen-shot-2011-02-08-at-11.13.57-AM-300x103.png 300w, http:\/\/blog.1oc.com\/wp-content\/uploads\/2011\/02\/Screen-shot-2011-02-08-at-11.13.57-AM-500x171.png 500w, http:\/\/blog.1oc.com\/wp-content\/uploads\/2011\/02\/Screen-shot-2011-02-08-at-11.13.57-AM.png 591w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>Now you need to &#8220;Build All&#8221;.<\/p>\n<p>Once it&#8217;s done, you simply copy the entire content of your &#8220;local deploy web directory&#8221; into your server deployed web directory, and run the application.<\/p>\n<p><a href=\"http:\/\/blog.1oc.com\/wp-content\/uploads\/2011\/02\/Screen-shot-2011-02-08-at-11.21.31-AM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-387\" title=\"Screen shot 2011-02-08 at 11.21.31 AM\" src=\"http:\/\/blog.1oc.com\/wp-content\/uploads\/2011\/02\/Screen-shot-2011-02-08-at-11.21.31-AM-300x80.png\" alt=\"\" width=\"300\" height=\"80\" srcset=\"http:\/\/blog.1oc.com\/wp-content\/uploads\/2011\/02\/Screen-shot-2011-02-08-at-11.21.31-AM-300x80.png 300w, http:\/\/blog.1oc.com\/wp-content\/uploads\/2011\/02\/Screen-shot-2011-02-08-at-11.21.31-AM-1024x274.png 1024w, http:\/\/blog.1oc.com\/wp-content\/uploads\/2011\/02\/Screen-shot-2011-02-08-at-11.21.31-AM-500x134.png 500w, http:\/\/blog.1oc.com\/wp-content\/uploads\/2011\/02\/Screen-shot-2011-02-08-at-11.21.31-AM.png 1404w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>Now, you are &#8220;almost&#8221; ready, before you can RUN the program you have to run your &#8220;REORG&#8221; that on your first deployment is going to be the creation of the database.<\/p>\n<p>In order to do that you need to &#8220;login&#8221; into your CentOS server through a TERMINAL, go to your deployment directory and run the reorg, like this:<\/p>\n<p>$\u00a0cd \/var\/www\/virtualhost\/ruby.1oc.com\/web<\/p>\n<p>$\u00a0ruby reorganization.rb<\/p>\n<p>DONE !<\/p>\n<p>now point to your website and you see your Ruby application running<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you haven&#8217;t&#8217; read it, make sure to first, take a look at the part 1 What we&#8217;ll going to do today is actually create a GeneXus application with Ruby and mySql and deply (an run) it under CentOS platform &hellip; <a href=\"http:\/\/blog.1oc.com\/?p=382\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,9],"tags":[],"class_list":["post-382","post","type-post","status-publish","format-standard","hentry","category-genexus","category-unix"],"_links":{"self":[{"href":"http:\/\/blog.1oc.com\/index.php?rest_route=\/wp\/v2\/posts\/382","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/blog.1oc.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.1oc.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.1oc.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.1oc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=382"}],"version-history":[{"count":1,"href":"http:\/\/blog.1oc.com\/index.php?rest_route=\/wp\/v2\/posts\/382\/revisions"}],"predecessor-version":[{"id":404,"href":"http:\/\/blog.1oc.com\/index.php?rest_route=\/wp\/v2\/posts\/382\/revisions\/404"}],"wp:attachment":[{"href":"http:\/\/blog.1oc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=382"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.1oc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=382"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.1oc.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=382"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}