Difference between revisions of "User:Rfs/Installing wobble motions"

From FreekiWiki
Jump to navigation Jump to search
 
Line 9: Line 9:
  
 
''(??? actually I need to get motions which is a sub-project of wobble.)''
 
''(??? actually I need to get motions which is a sub-project of wobble.)''
 +
 +
Create a user for the database:
 +
rfs@boq:~/wobble/motions/trunk$ sudo su - postgres
 +
postgres@boq:~$ createuser rfs
 +
Shall the new role be a superuser? (y/n) y
 +
CREATE ROLE
 +
postgres@boq:~$
 +
 +
Create the databases (empty for now):
 +
rfs@boq:~/wobble/motions/trunk$ createdb motions_test
 +
CREATE DATABASE
 +
rfs@boq:~/wobble/motions/trunk$ createdb motions_development
 +
CREATE DATABASE
 +
rfs@boq:~/wobble/motions/trunk$ createdb motions_prioduction
 +
CREATE DATABASE
  
 
Start the server:
 
Start the server:
Line 18: Line 33:
 
  [2007-10-08 10:19:56] INFO  ruby 1.8.5 (2006-08-25) [i486-linux]
 
  [2007-10-08 10:19:56] INFO  ruby 1.8.5 (2006-08-25) [i486-linux]
 
  [2007-10-08 10:19:56] INFO  WEBrick::HTTPServer#start: pid=7392 port=3000
 
  [2007-10-08 10:19:56] INFO  WEBrick::HTTPServer#start: pid=7392 port=3000
 
Create a user for the database:
 
rfs@boq:~/wobble/motions/trunk$ sudo su - postgres
 
postgres@boq:~$ createuser rfs
 
Shall the new role be a superuser? (y/n) y
 
CREATE ROLE
 
postgres@boq:~$
 
 
  
 
Using a browser, go to:
 
Using a browser, go to:
 
  http://localhost:3000
 
  http://localhost:3000

Revision as of 10:28, 8 October 2007

Install necessary pacakages:

sudo aptitude install rails rubygems postgresql-8

Trying to start the server, I got a message that said to do this as well:

sudo gem install -v=1.1.6 rails

Get the application(s) from the svn server:

svn co svn+ssh://dev.freegeek.org/svn/wobble/trunk wobble/trunk

(??? actually I need to get motions which is a sub-project of wobble.)

Create a user for the database:

rfs@boq:~/wobble/motions/trunk$ sudo su - postgres
postgres@boq:~$ createuser rfs
Shall the new role be a superuser? (y/n) y
CREATE ROLE
postgres@boq:~$ 

Create the databases (empty for now):

rfs@boq:~/wobble/motions/trunk$ createdb motions_test
CREATE DATABASE
rfs@boq:~/wobble/motions/trunk$ createdb motions_development
CREATE DATABASE
rfs@boq:~/wobble/motions/trunk$ createdb motions_prioduction
CREATE DATABASE

Start the server:

rfs@boq:~/wobble/motions/trunk$ ./script/server 
=> Booting WEBrick...
=> Rails application started on http://0.0.0.0:3000
=> Ctrl-C to shutdown server; call with --help for options
[2007-10-08 10:19:56] INFO  WEBrick 1.3.1
[2007-10-08 10:19:56] INFO  ruby 1.8.5 (2006-08-25) [i486-linux]
[2007-10-08 10:19:56] INFO  WEBrick::HTTPServer#start: pid=7392 port=3000

Using a browser, go to:

http://localhost:3000