Difference between revisions of "DeploymentNotes"

From Sirikata Wiki
Jump to navigation Jump to search
(Created page with "On sns30.cs.princeton.edu, all relevant files are located in /disk/local/sirikata/bskata/, and the rest assumes that you cd-d to this directory. To update code: git pull origi...")
 
 
Line 1: Line 1:
 
On sns30.cs.princeton.edu, all relevant files are located in /disk/local/sirikata/bskata/, and the rest assumes that you cd-d to this directory.
 
On sns30.cs.princeton.edu, all relevant files are located in /disk/local/sirikata/bskata/, and the rest assumes that you cd-d to this directory.
  
To update code:
+
===To update code:===
 
   git pull origin master:master
 
   git pull origin master:master
  
To re-build:
+
===To re-build:===
  make -j6 (from root directory or build/cmake)
+
(From root directory or build/cmake)
 +
  make -j6
  
To run space:
+
===To run space:===
  Open a screen session.
+
Open a screen session.
  cd /disk/local/sirikata/bskata/build/cmake
+
 
 +
cd /disk/local/sirikata/bskata/build/cmake
 
    
 
    
  * general:
+
* general:
 
       ./space_d --servermap-options=--port=6880
 
       ./space_d --servermap-options=--port=6880
  
  * with physics on:
+
* with physics on:
 
       ./space_d --servermap-options=--port=6880 --loc=bulletphysics
 
       ./space_d --servermap-options=--port=6880 --loc=bulletphysics
  
  * with no separate static and dynamic trees:
+
* with no separate static and dynamic trees:
 
       ./space_d --servermap-options=--port=6880 --prox.split-dynamic=false
 
       ./space_d --servermap-options=--port=6880 --prox.split-dynamic=false
  
  * with gdb around it:
+
* with gdb around it:
 
       gdb --args <command you were going to run>
 
       gdb --args <command you were going to run>
  
  
To run OH on sns30:
+
===To run OH on sns30:===
  
  Open a screen session.
+
Open a screen session.
  cd /disk/local/sirikata/bskata/build/cmake
+
cd /disk/local/sirikata/bskata/build/cmake
 
    
 
    
  * pointed at your own db:
+
* pointed at your own db:
 
       ./cppoh_d --object-factory-opts=--db=<path to your db file> "--servermap-options=--host=sns30.cs.princeton.edu --port=6880"
 
       ./cppoh_d --object-factory-opts=--db=<path to your db file> "--servermap-options=--host=sns30.cs.princeton.edu --port=6880"
  
  * pointed at a basic small town + birthing tower db (note: requires physics to look "right")
+
* pointed at a basic small town + birthing tower db (note: requires physics to look "right")
 
       ./cppoh_d --object-factory-opts=--db=demo.db "--servermap-options=--host=sns30.cs.princeton.edu --port=6880"
 
       ./cppoh_d --object-factory-opts=--db=demo.db "--servermap-options=--host=sns30.cs.princeton.edu --port=6880"
  
  * to run with gdb:
+
* to run with gdb:
 
       gdb --args <command you were going to run>
 
       gdb --args <command you were going to run>
  
  
  
Notes:
+
===Notes:===
  Please don't modify the following files for your own testing, everyone uses them:
+
Please don't modify the following files for your own testing, everyone uses them:
    /disk/local/sirikata/bskata/build/cmake/demo.db
+
/disk/local/sirikata/bskata/build/cmake/demo.db
    /disk/local/sirikata/bskata/build/cmake/generate.em
+
/disk/local/sirikata/bskata/build/cmake/generate.em

Latest revision as of 19:38, 28 February 2012

On sns30.cs.princeton.edu, all relevant files are located in /disk/local/sirikata/bskata/, and the rest assumes that you cd-d to this directory.

To update code:

 git pull origin master:master

To re-build:

(From root directory or build/cmake)

 make -j6

To run space:

Open a screen session.

cd /disk/local/sirikata/bskata/build/cmake

  • general:
     ./space_d --servermap-options=--port=6880
  • with physics on:
     ./space_d --servermap-options=--port=6880 --loc=bulletphysics
  • with no separate static and dynamic trees:
     ./space_d --servermap-options=--port=6880 --prox.split-dynamic=false
  • with gdb around it:
     gdb --args <command you were going to run>


To run OH on sns30:

Open a screen session. cd /disk/local/sirikata/bskata/build/cmake

  • pointed at your own db:
     ./cppoh_d --object-factory-opts=--db=<path to your db file> "--servermap-options=--host=sns30.cs.princeton.edu --port=6880"
  • pointed at a basic small town + birthing tower db (note: requires physics to look "right")
     ./cppoh_d --object-factory-opts=--db=demo.db "--servermap-options=--host=sns30.cs.princeton.edu --port=6880"
  • to run with gdb:
     gdb --args <command you were going to run>


Notes:

Please don't modify the following files for your own testing, everyone uses them:

/disk/local/sirikata/bskata/build/cmake/demo.db
/disk/local/sirikata/bskata/build/cmake/generate.em