Difference between revisions of "Talk:Installing Pier on Ubuntu"

From Organic Design wiki
m
 
(10 intermediate revisions by 2 users not shown)
Line 1: Line 1:
I think I found a better, more explicit how-to here: http://smalltalkzen.wordpress.com/2010/12/27/deployed-hello-world-installing-seaside-and-squeak-basics/
+
Thanks Jack! I'll give that a try--[[User:Infomaniac|Infomaniac]] 17:28, 15 March 2011 (PDT)
  
Note that file contents, Pier.app, has owner:group of ''you'':''you'' [where ''you'' is your username] by default
+
==Set Up a Pier Image==
 +
*I've tried twice to insert a code block; it doesn't save (though it shows in the diff) and chrome shows four 'create new procedure' blocks. 'Serve Apache alongside Pier' section also repeats 4x. am i doing something wrong?--[[User:Infomaniac|Infomaniac]] 10:09, 25 March 2011 (PDT)
 +
* after restart, pointing browser to localhost:8080 gives redirect to google 'did you mean...?'--[[User:Infomaniac|Infomaniac]] 10:13, 25 March 2011 (PDT)
 +
*starting Pier manually as root succeeds. localhost:8080 works!--[[User:Infomaniac|Infomaniac]] 10:17, 25 March 2011 (PDT)
 +
:: Great stuff! [[User:Jack|Jack]] 00:01, 28 March 2011 (PDT)
 +
 
 +
== Download and Install Files ==
 +
* Download Pier-2.0-OneClick.zip from http://www.piercms.com/download
 +
* As root, unzip/mount the archive, create the web directory:
 +
{{code|
 +
cd /srv
 +
 
 +
mkdir /srv/site
 +
}}
 +
 
 +
Copy to the /srv/site folder the following files [from Pier.app/Contents/Resources]:
 +
:pier.image,
 +
:pier.changes,
 +
:files/ folder,
 +
: PharoV10.sources
 +
 
 +
* if you are using a gui you can chmod 777 site (to allow you to copy and paste), just don't forget to chmod 644 afterward.
 +
* Recursively chown the web dir:
 +
{{code|
 +
chown -R www-data:www-data site
 +
}}
 +
 
 +
== First run ==
 +
The instructions say:
 +
: you can run the image headless by using the following bash script:
 +
*I'm not exactly sure what is meant by 'headless(-ly) but I think it has something to do with Apache, in the next section. I wasn't expecting to get into installing apache. I thought the image would be a complete webserver!
 +
 
 +
{{code | #!/bin/bash
 +
 
 +
#settings
 +
USER="www-data"
 +
VM="/usr/bin/squeakvm"
 +
VM_PARAMS="-mmap 200m -vm-sound-null -vm-display-null"
 +
IMAGE="pier.image"
 +
 
 +
#start the vm
 +
"$VM" $VM_PARAMS "$IMAGE" &
 +
}}

Latest revision as of 07:01, 28 March 2011

Thanks Jack! I'll give that a try--Infomaniac 17:28, 15 March 2011 (PDT)

Set Up a Pier Image

  • I've tried twice to insert a code block; it doesn't save (though it shows in the diff) and chrome shows four 'create new procedure' blocks. 'Serve Apache alongside Pier' section also repeats 4x. am i doing something wrong?--Infomaniac 10:09, 25 March 2011 (PDT)
  • after restart, pointing browser to localhost:8080 gives redirect to google 'did you mean...?'--Infomaniac 10:13, 25 March 2011 (PDT)
  • starting Pier manually as root succeeds. localhost:8080 works!--Infomaniac 10:17, 25 March 2011 (PDT)
Great stuff! Jack 00:01, 28 March 2011 (PDT)

Download and Install Files

cd /srv

mkdir /srv/site

Copy to the /srv/site folder the following files [from Pier.app/Contents/Resources]:

pier.image,
pier.changes,
files/ folder,
PharoV10.sources
  • if you are using a gui you can chmod 777 site (to allow you to copy and paste), just don't forget to chmod 644 afterward.
  • Recursively chown the web dir:
chown -R www-data:www-data site

First run

The instructions say:

you can run the image headless by using the following bash script:
  • I'm not exactly sure what is meant by 'headless(-ly) but I think it has something to do with Apache, in the next section. I wasn't expecting to get into installing apache. I thought the image would be a complete webserver!


{{{1}}}