Starting a site

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Starting a site

Nicolas Petton
Hi,

I tried the tutorial. How can I start the site ?
I tried :

|book|

book := AddressBook new.
book addresses
add: (Address newName: 'Sebastjan' surname: 'Dormir' phone: '01/514 33
66' email: 'sebastjan at something.si');
add: (Address newName: 'John' surname: 'Newton' phone: '05/555 77 66'
email: 'john at something.si');
add: (Address newName: 'Elizabeth' surname: 'Schneider' phone: '03/561
23 12' email: 'elizabeth at something.at').

(AIDASite named: 'aidademo') urlResolver defaultURL: '/addressbook.html'
forObject: book

(BTW, "(AIDASite named: 'aidademo')..." did not work, but
"(AIDASite newNamed: 'aidademo')..." did.

Is there an error in the tutorial ?)

I've got a 404 error at the address :
http://localhost:8888/addressbook.html

So I started Swazoo :

SwazooServer start

Same thing, 404 error.

I tried also :

(AIDASite named: 'aidademo') start but it didn't work.

What am I missing ?

I'm using Squeak.

Nicolas
--
Nicolas Petton
http://nico.bioskop.fr
             ___
           ooooooo
          OOOOOOOOO
         |Smalltalk|
          OOOOOOOOO
           ooooooo
            \   /
             [|]
--------------------------------
Ma cl? GPG est disponible ici :
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xE788C34D

-------------- section suivante --------------
Une pi?ce jointe non texte a ?t? nettoy?e...
Nom: non disponible
Type: application/pgp-signature
Taille: 189 octets
Desc: Ceci est une partie de message
        =?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e?=
Url: http://lists.aidaweb.si/pipermail/aida/attachments/20071015/d71e5c9d/attachment.sig 

Reply | Threaded
Open this post in threaded view
|

Starting a site

Janko Mivšek
Hi Nicolas,

You probably didn't start a demo site before you start a tutorial and
that's why you don't have that aidademo site properly configured. I'm
just adding that requirement to tutorial now...sorry!

Now try to setup your site manually:

  (AIDASite named: 'aidademo')
        host: 'localhost' ip: '127.0.0.1' port: 8888.
  SwazooServer stop; start.

Hope this helps.
Janko

nicolas petton wrote:

> Hi,
>
> I tried the tutorial. How can I start the site ?
> I tried :
>
> |book|
>
> book := AddressBook new.
> book addresses
> add: (Address newName: 'Sebastjan' surname: 'Dormir' phone: '01/514 33
> 66' email: 'sebastjan na something.si');
> add: (Address newName: 'John' surname: 'Newton' phone: '05/555 77 66'
> email: 'john na something.si');
> add: (Address newName: 'Elizabeth' surname: 'Schneider' phone: '03/561
> 23 12' email: 'elizabeth na something.at').
>
> (AIDASite named: 'aidademo') urlResolver defaultURL: '/addressbook.html'
> forObject: book
>
> (BTW, "(AIDASite named: 'aidademo')..." did not work, but
> "(AIDASite newNamed: 'aidademo')..." did.
>
> Is there an error in the tutorial ?)
>
> I've got a 404 error at the address :
> http://localhost:8888/addressbook.html
>
> So I started Swazoo :
>
> SwazooServer start
>
> Same thing, 404 error.
>
> I tried also :
>
> (AIDASite named: 'aidademo') start but it didn't work.
>
> What am I missing ?
>
> I'm using Squeak.
>
> Nicolas
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Aida mailing list
> Aida na aidaweb.si
> http://lists.aidaweb.si/mailman/listinfo/aida

--
Janko Miv?ek
AIDA/Web
Smalltalk Web Application Server
http://www.aidaweb.si