Index: openacs-4/packages/acs-core-docs/www/tutorial-newpackage.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/tutorial-newpackage.html,v diff -u -r1.39.2.1 -r1.39.2.2 --- openacs-4/packages/acs-core-docs/www/tutorial-newpackage.html 18 Jun 2010 21:29:36 -0000 1.39.2.1 +++ openacs-4/packages/acs-core-docs/www/tutorial-newpackage.html 12 Dec 2010 00:07:03 -0000 1.39.2.2 @@ -1,8 +1,17 @@ +<<<<<<< tutorial-newpackage.html
In order to see your work in progress, you must create a
+=======
+ /var/lib/aolserver/$OPENACS_SERVICE_NAME/packages/myfirstpackage
.
+ This is the "home directory" of our new package, and all
+ files in the package will be within this directory. More on the structure of
+ packages).
In order to see your work in progress, you must create a +>>>>>>> 1.41 map between the URL space of incoming requests and the package application instance. You do this by adding the application in the main site administration). This creates a link between the incoming URL requests and an instance of the application. (More on applications and nodes)
You can have instances of a package on one site, each with a different URL and different permissions, all sharing the same code and tables. This requires that a package be developed package-aware. You'll see how to do that +<<<<<<< tutorial-newpackage.html in this tutorial.
Browse to http://yourserver.test:8000/admin/applications/application-add/.
Choose "My First Package" from the list and click OK (the other fields are optional).
By mounting the package, we've caused all requests to http://yourserver.test:8000/myfirstpackage to be satisfied from the files at /var/lib/aolserver/$OPENACS_SERVICE_NAME/packages/myfirstpackage/www.
The remainder of the tutorial walks you through each file one at a time as you create the package. You can skip all this, and get a working package, by doing the following:
cd /var/lib/aolserver/$OPENACS_SERVICE_NAME/packages/acs-core-docs/www/files/tutorial +======= + in this tutorial.
Browse to +
http://yourserver.test:8000/admin/applications/application-add/
.Choose "My First Package" from the list and click OK (the other fields are optional).
By mounting the package, we've caused all requests to +
http://yourserver.test:8000/myfirstpackage
+ to be satisfied from the files at/var/lib/aolserver/$OPENACS_SERVICE_NAME/packages/myfirstpackage/www
.
The remainder of the tutorial walks you through each file one at a time as you create the package. You can skip all this, and get a working package, by doing the following:
cd /var/lib/aolserver/$OPENACS_SERVICE_NAME/packages/acs-core-docs/www/files/tutorial +>>>>>>> 1.41 psql $OPENACS_SERVICE_NAME -f myfirstpackage-create.sql cp note-edit.* note-delete.tcl index.* ../../../../myfirstpackage/www/ mkdir ../../../../myfirstpackage/lib cp note-list.* ../../../../myfirstpackage/lib/ cp myfirstpackage-*sql ../../../../myfirstpackage/sql/postgresql/ cp myfirstpackage-procs.tcl ../../../../myfirstpackage/tcl/test/ -cp note-procs.tcl ../../../../myfirstpackage/tcl/
After restarting the server, the tutorial application will be installed and working at the url you selected in the previous step.
After restarting the server, the tutorial application will be installed and working at the url you selected in the previous step.