User Tools

Site Tools


ruby_on_rails

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
ruby_on_rails [2021/03/15 02:28] – created peteyboyruby_on_rails [2021/03/15 18:36] (current) – change to 'uid' from 'uid -u' peteyboy
Line 8: Line 8:
  
   * You must be a MetaARPA member to use Rails (see [[http://sdf.org/index.cgi?access|memberships]] page).   * You must be a MetaARPA member to use Rails (see [[http://sdf.org/index.cgi?access|memberships]] page).
 +  * You should figure out your [[meta port allocation| allocated port]] in the metaarray
   * Most Rails applications use a database, so you'll probably want dba membership as well (see [[http://sdf.org/index.cgi?access|memberships]] page). However MetaARPA members may use sqlite if they so desire.   * Most Rails applications use a database, so you'll probably want dba membership as well (see [[http://sdf.org/index.cgi?access|memberships]] page). However MetaARPA members may use sqlite if they so desire.
  
 ===== Getting started ===== ===== Getting started =====
  
-**Step 1:** Run "mkhomepg" if you have not already done so (see the [[building_a_website]] tutorial for more information on the "mkhomepg" command).+**Step 1:** Run "mkhomepg" if you have not already done so (see the [[Building a Website on SDF]] tutorial for more information on the "mkhomepg" command).
  
 **Step 2:** Use the rails command to construct the base for your new rails application: **Step 2:** Use the rails command to construct the base for your new rails application:
Line 95: Line 96:
 **step 3:** **step 3:**
  
-Start the webrick server on the port **that is equal to your uid**, which you can obtain by executing //''id -u''((Use the "id" command to find your uid+Start the webrick server on your [[meta port allocation |meta allocated port]] that is equal to your //uid ((Example:
  
-  $ id -u+  $ id
   uid=<YOUR UID>(<YOUR USERNAME>) gid=500(arpa) groups=500(arpa),600(MetaARPA)   uid=<YOUR UID>(<YOUR USERNAME>) gid=500(arpa) groups=500(arpa),600(MetaARPA)
  
Line 109: Line 110:
   => Ctrl-C to shutdown server; call with --help for options   => Ctrl-C to shutdown server; call with --help for options
  
-Then point your browser at "http://yourdomain:<YOUR UID>You should now be looking at the default 'Welcome to Rails page'. Now you can begin to develop your rails app.+Then point your browser at ''<nowiki>http://yourdomain:<YOUR UID></nowiki>''You should now be looking at the default 'Welcome to Rails page'. Now you can begin to develop your rails app.
  
 ===== Hello, world of Rails! ===== ===== Hello, world of Rails! =====
Line 162: Line 163:
  
  
-[[http://sdf.org/?tutorials/Ruby_on_Rails]] - traditional link (using [[wp>Revision_Control_System|RCS]])+[[http://sdf.org/?tutorials/Ruby_on_Rails | Ruby on Rails]] - traditional link (using [[wp>Revision_Control_System|RCS]])
ruby_on_rails.1615775303.txt.gz · Last modified: 2021/03/15 02:28 by peteyboy