Serving static websites with Aida

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

Serving static websites with Aida

Janko Mivšek
Salut Cédrick,

> It's cool to have both web apps. Actually, I would like a special one
> that only could build static sites (some stupid html files with even
> some php but not much). The think is sometimes I have to do a static
> site for some friends... Seaside and Aida are overkill for that. I can
> do plain html, but I'd prefer having a squeak interface ;)... I'll
> propably think about that.

Aida is very handy to serve static websites too. I'm actually using it
for just such websites. Don't worry about size of the code, you simply
install what it is there and forget. Important thing is simplicity of
use and the performance. Well, Apache is also kind of overkill for
static serving ...

To set just static web server with Aida you simply:

1. download and start with Damien's squeak-web image.
2. change host, ip and port of default website accordingly:
    (AIDASite named: 'aidademo')
       host: 'www.staticsite.org' ip: 'my.siteip.org' port: 80
3. change home directory to point do correct one:
    (AIDASite named: 'aidademo')
       homeDirectory: '/home/myaccount/public_html/'

That's it, it can't be simpler!

Ok, you could even use Swazoo directly, but currently Swazoo's
FileResource doesn't stream large files while Aida does, so for large
files (and specially videos and screencasts) Aida is the only useful
Smalltalk choice right now.

I hope this helps.
Janko


--
Janko Mivšek
AIDA/Web
Smalltalk Web Application Server
http://www.aidaweb.si
_______________________________________________
Aida mailing list
[hidden email]
http://lists.aidaweb.si/mailman/listinfo/aida
Reply | Threaded
Open this post in threaded view
|

Re: Serving static websites with Aida

cedreek
Salút Janko

My aim is a bit more cumbersome, but anyway thanks for the pointers ;).

What I'd like is not having to host all sites I do (especially thos of
frinds). There are plenty of providers that offer free space. The
problem is they don't support Smalltalk :( yet :).

So what I imagine is working on pure html pages from smalltalk
(seaside or aida) as a start and once ok, I publish through ftp... It
could be just a html dump of a static site (some html pages) that are
automatically sent in the Internet providers... (not sure I'm clear on
that ;) ). We may want to have the reverse fonctionnality too (read a
site from a location).

Could you add such fonctionnalities (maybe it's too cumbersome ;) )? I
imagine the difficulty is to determine wether the site is static or
not...

Thanks

Cédrick



2008/6/23 Janko Mivšek <[hidden email]>:

> Salut Cédrick,
>
>> It's cool to have both web apps. Actually, I would like a special one
>> that only could build static sites (some stupid html files with even
>> some php but not much). The think is sometimes I have to do a static
>> site for some friends... Seaside and Aida are overkill for that. I can
>> do plain html, but I'd prefer having a squeak interface ;)... I'll
>> propably think about that.
>
> Aida is very handy to serve static websites too. I'm actually using it
> for just such websites. Don't worry about size of the code, you simply
> install what it is there and forget. Important thing is simplicity of
> use and the performance. Well, Apache is also kind of overkill for
> static serving ...
>
> To set just static web server with Aida you simply:
>
> 1. download and start with Damien's squeak-web image.
> 2. change host, ip and port of default website accordingly:
>    (AIDASite named: 'aidademo')
>       host: 'www.staticsite.org' ip: 'my.siteip.org' port: 80
> 3. change home directory to point do correct one:
>    (AIDASite named: 'aidademo')
>       homeDirectory: '/home/myaccount/public_html/'
>
> That's it, it can't be simpler!
>
> Ok, you could even use Swazoo directly, but currently Swazoo's
> FileResource doesn't stream large files while Aida does, so for large
> files (and specially videos and screencasts) Aida is the only useful
> Smalltalk choice right now.
>
> I hope this helps.
> Janko
>
>
> --
> Janko Mivšek
> AIDA/Web
> Smalltalk Web Application Server
> http://www.aidaweb.si
> _______________________________________________
> Aida mailing list
> [hidden email]
> http://lists.aidaweb.si/mailman/listinfo/aida
>
_______________________________________________
Aida mailing list
[hidden email]
http://lists.aidaweb.si/mailman/listinfo/aida
Reply | Threaded
Open this post in threaded view
|

Re: Serving static websites with Aida

Janko Mivšek
Cédrick,

Ok, so kind of reverse static serving then :) That is, you'd like to
convert a typical dynamic Aida website to static web pages and ftp them
to some web serving provider. Ok, that's simple. Just use wget to
"migrate" an Aida site, something like this (maybe some other option is
also needed, check man pages):

        wget -m http:/www.myaidasite.org

Then just ftp the migrated content to your provider. All this can be
done with a simple script which is run from time to time when needed or
just put in cron to be run periodically.

Is this the right solution for you?

JAnko


cdrick wrote:

> Salút Janko
>
> My aim is a bit more cumbersome, but anyway thanks for the pointers ;).
>
> What I'd like is not having to host all sites I do (especially thos of
> frinds). There are plenty of providers that offer free space. The
> problem is they don't support Smalltalk :( yet :).
>
> So what I imagine is working on pure html pages from smalltalk
> (seaside or aida) as a start and once ok, I publish through ftp... It
> could be just a html dump of a static site (some html pages) that are
> automatically sent in the Internet providers... (not sure I'm clear on
> that ;) ). We may want to have the reverse fonctionnality too (read a
> site from a location).
>
> Could you add such fonctionnalities (maybe it's too cumbersome ;) )? I
> imagine the difficulty is to determine wether the site is static or
> not...
>
> Thanks
>
> Cédrick
>
>
>
> 2008/6/23 Janko Mivšek <[hidden email]>:
>> Salut Cédrick,
>>
>>> It's cool to have both web apps. Actually, I would like a special one
>>> that only could build static sites (some stupid html files with even
>>> some php but not much). The think is sometimes I have to do a static
>>> site for some friends... Seaside and Aida are overkill for that. I can
>>> do plain html, but I'd prefer having a squeak interface ;)... I'll
>>> propably think about that.
>> Aida is very handy to serve static websites too. I'm actually using it
>> for just such websites. Don't worry about size of the code, you simply
>> install what it is there and forget. Important thing is simplicity of
>> use and the performance. Well, Apache is also kind of overkill for
>> static serving ...
>>
>> To set just static web server with Aida you simply:
>>
>> 1. download and start with Damien's squeak-web image.
>> 2. change host, ip and port of default website accordingly:
>>    (AIDASite named: 'aidademo')
>>       host: 'www.staticsite.org' ip: 'my.siteip.org' port: 80
>> 3. change home directory to point do correct one:
>>    (AIDASite named: 'aidademo')
>>       homeDirectory: '/home/myaccount/public_html/'
>>
>> That's it, it can't be simpler!
>>
>> Ok, you could even use Swazoo directly, but currently Swazoo's
>> FileResource doesn't stream large files while Aida does, so for large
>> files (and specially videos and screencasts) Aida is the only useful
>> Smalltalk choice right now.
>>
>> I hope this helps.
>> Janko
>>
>>
>> --
>> Janko Mivšek
>> AIDA/Web
>> Smalltalk Web Application Server
>> http://www.aidaweb.si
>> _______________________________________________
>> Aida mailing list
>> [hidden email]
>> http://lists.aidaweb.si/mailman/listinfo/aida
>>
> _______________________________________________
> Aida mailing list
> [hidden email]
> http://lists.aidaweb.si/mailman/listinfo/aida

--
Janko Mivšek
AIDA/Web
Smalltalk Web Application Server
http://www.aidaweb.si
_______________________________________________
Aida mailing list
[hidden email]
http://lists.aidaweb.si/mailman/listinfo/aida
Reply | Threaded
Open this post in threaded view
|

Re: Serving static websites with Aida

cedreek
> Cédrick,
>
> Ok, so kind of reverse static serving then :) That is, you'd like to
> convert a typical dynamic Aida website to static web pages and ftp them
> to some web serving provider. Ok, that's simple.

Even less :) I just want to do a static site but in Smalltalk (not a
dreamweaver, nor nvu). Then push (with a publish button) the html
equivalent page so that it work by itself. The reverse is actually not
needed (I think pushing the package defining the static site (desgin
mode) could be interesting though so as not to loose the conception
(written in ST).

I think what I'd like is a bit too "simple" and I can just reuse the
html generation of Aida or Seaside...

Anyway, this is only an idea... nothing concrete right now... (and in
the few weeks ;) ).


> Just use wget to
> "migrate" an Aida site, something like this (maybe some other option is
> also needed, check man pages):
>
>        wget -m http:/www.myaidasite.org
>
> Then just ftp the migrated content to your provider.

Would this work out of the box ? I know in seaside it won't as links
are "continuation" links. Do you ling html pages in AIDA ?

Thanks

Cédrick

> All this can be
> done with a simple script which is run from time to time when needed or
> just put in cron to be run periodically.
>
> Is this the right solution for you?
>
> JAnko
>
>
> cdrick wrote:
>> Salút Janko
>>
>> My aim is a bit more cumbersome, but anyway thanks for the pointers ;).
>>
>> What I'd like is not having to host all sites I do (especially thos of
>> frinds). There are plenty of providers that offer free space. The
>> problem is they don't support Smalltalk :( yet :).
>>
>> So what I imagine is working on pure html pages from smalltalk
>> (seaside or aida) as a start and once ok, I publish through ftp... It
>> could be just a html dump of a static site (some html pages) that are
>> automatically sent in the Internet providers... (not sure I'm clear on
>> that ;) ). We may want to have the reverse fonctionnality too (read a
>> site from a location).
>>
>> Could you add such fonctionnalities (maybe it's too cumbersome ;) )? I
>> imagine the difficulty is to determine wether the site is static or
>> not...
>>
>> Thanks
>>
>> Cédrick
>>
>>
>>
>> 2008/6/23 Janko Mivšek <[hidden email]>:
>>> Salut Cédrick,
>>>
>>>> It's cool to have both web apps. Actually, I would like a special one
>>>> that only could build static sites (some stupid html files with even
>>>> some php but not much). The think is sometimes I have to do a static
>>>> site for some friends... Seaside and Aida are overkill for that. I can
>>>> do plain html, but I'd prefer having a squeak interface ;)... I'll
>>>> propably think about that.
>>> Aida is very handy to serve static websites too. I'm actually using it
>>> for just such websites. Don't worry about size of the code, you simply
>>> install what it is there and forget. Important thing is simplicity of
>>> use and the performance. Well, Apache is also kind of overkill for
>>> static serving ...
>>>
>>> To set just static web server with Aida you simply:
>>>
>>> 1. download and start with Damien's squeak-web image.
>>> 2. change host, ip and port of default website accordingly:
>>>    (AIDASite named: 'aidademo')
>>>       host: 'www.staticsite.org' ip: 'my.siteip.org' port: 80
>>> 3. change home directory to point do correct one:
>>>    (AIDASite named: 'aidademo')
>>>       homeDirectory: '/home/myaccount/public_html/'
>>>
>>> That's it, it can't be simpler!
>>>
>>> Ok, you could even use Swazoo directly, but currently Swazoo's
>>> FileResource doesn't stream large files while Aida does, so for large
>>> files (and specially videos and screencasts) Aida is the only useful
>>> Smalltalk choice right now.
>>>
>>> I hope this helps.
>>> Janko
>>>
>>>
>>> --
>>> Janko Mivšek
>>> AIDA/Web
>>> Smalltalk Web Application Server
>>> http://www.aidaweb.si
>>> _______________________________________________
>>> Aida mailing list
>>> [hidden email]
>>> http://lists.aidaweb.si/mailman/listinfo/aida
>>>
>> _______________________________________________
>> Aida mailing list
>> [hidden email]
>> http://lists.aidaweb.si/mailman/listinfo/aida
>
> --
> Janko Mivšek
> AIDA/Web
> Smalltalk Web Application Server
> http://www.aidaweb.si
> _______________________________________________
> Aida mailing list
> [hidden email]
> http://lists.aidaweb.si/mailman/listinfo/aida
>
_______________________________________________
Aida mailing list
[hidden email]
http://lists.aidaweb.si/mailman/listinfo/aida
Reply | Threaded
Open this post in threaded view
|

Re: Serving static websites with Aida

Janko Mivšek
cdrick wrote:

>> Just use wget to
>> "migrate" an Aida site, something like this (maybe some other option is
>> also needed, check man pages):
>>
>>        wget -m http:/www.myaidasite.org
>>
>> Then just ftp the migrated content to your provider.

> Would this work out of the box ? I know in seaside it won't as links
> are "continuation" links. Do you ling html pages in AIDA ?

Yes, as you know Aida has RESTfull Url links so the same page has the
same Url all the lifecycle of domain object it represents. But you can
try this by yourself, just mirror (ops, mirror is a right word, not
migrate) our http://www.aidaweb.si which is Aida/Scribo based and you'll
be convinced soon.

JAnko


--
Janko Mivšek
AIDA/Web
Smalltalk Web Application Server
http://www.aidaweb.si
_______________________________________________
Aida mailing list
[hidden email]
http://lists.aidaweb.si/mailman/listinfo/aida
Reply | Threaded
Open this post in threaded view
|

Re: Serving static websites with Aida

cedreek
>
>> Would this work out of the box ? I know in seaside it won't as links
>> are "continuation" links. Do you ling html pages in AIDA ?
>
> Yes, as you know Aida has RESTfull Url links so the same page has the
> same Url all the lifecycle of domain object it represents. But you can
> try this by yourself, just mirror (ops, mirror is a right word, not
> migrate) our http://www.aidaweb.si which is Aida/Scribo based and you'll
> be convinced soon.

I just wanted to be sure ;)

So I'll probably do this restaurant website of friends with Aida, so
I'll learn it (event if it will remain only static content).

I imagine the only thing I have to be carefull is not to have any
generated wep page depending on the state of a given objet ? Am I
wrong ? so as it can still works if only "saves as" html.

Cédrick


>
> JAnko
>
>
> --
> Janko Mivšek
> AIDA/Web
> Smalltalk Web Application Server
> http://www.aidaweb.si
> _______________________________________________
> Aida mailing list
> [hidden email]
> http://lists.aidaweb.si/mailman/listinfo/aida
>
_______________________________________________
Aida mailing list
[hidden email]
http://lists.aidaweb.si/mailman/listinfo/aida
Reply | Threaded
Open this post in threaded view
|

Re: Serving static websites with Aida

Janko Mivšek
cdrick wrote:
>>> Would this work out of the box ? I know in seaside it won't as links
>>> are "continuation" links. Do you ling html pages in AIDA ?

>> Yes, as you know Aida has RESTfull Url links so the same page has the
>> same Url all the lifecycle of domain object it represents. But you can
>> try this by yourself, just mirror (ops, mirror is a right word, not
>> migrate) our http://www.aidaweb.si which is Aida/Scribo based and you'll
>> be convinced soon.

> I just wanted to be sure ;)
>
> So I'll probably do this restaurant website of friends with Aida, so
> I'll learn it (event if it will remain only static content).

Good idea!

> I imagine the only thing I have to be carefull is not to have any
> generated wep page depending on the state of a given objet ? Am I
> wrong ? so as it can still works if only "saves as" html.

You can safely generate web pages dynamically, just be carefully that
this content don't change much. For instance, don't put some component
with current date on the page :) Or weather report. Such things.

But for a restaurant you can make an usual domain model, for instance
with their menu and write an Aida app on top of it, that would be just
perfect. And when this menu will change (by special Aida app, accessible
only when restaurant's owner login), you simply rerun that mirroring
script and that's it!

JAnko


--
Janko Mivšek
AIDA/Web
Smalltalk Web Application Server
http://www.aidaweb.si
_______________________________________________
Aida mailing list
[hidden email]
http://lists.aidaweb.si/mailman/listinfo/aida
Reply | Threaded
Open this post in threaded view
|

Re: Serving static websites with Aida

cedreek
>> So I'll probably do this restaurant website of friends with Aida, so
>> I'll learn it (event if it will remain only static content).
>
> Good idea!
>
>> I imagine the only thing I have to be carefull is not to have any
>> generated wep page depending on the state of a given objet ? Am I
>> wrong ? so as it can still works if only "saves as" html.
>
> You can safely generate web pages dynamically, just be carefully that
> this content don't change much. For instance, don't put some component
> with current date on the page :) Or weather report. Such things.
>
> But for a restaurant you can make an usual domain model, for instance
> with their menu and write an Aida app on top of it, that would be just
> perfect. And when this menu will change (by special Aida app, accessible
> only when restaurant's owner login), you simply rerun that mirroring
> script and that's it!

Excellent idea ;)

I'll come back when I'll do that probably late this summer ;)
Maybe you'll help me at ESUG. ;) Do you come to the camp ?


>
> JAnko
>
_______________________________________________
Aida mailing list
[hidden email]
http://lists.aidaweb.si/mailman/listinfo/aida
Reply | Threaded
Open this post in threaded view
|

Re: Serving static websites with Aida

Janko Mivšek
cdrick wrote:

> I'll come back when I'll do that probably late this summer ;)
> Maybe you'll help me at ESUG. ;) Do you come to the camp ?

Good idea. Let we plan to meet at ESUG Camp Smalltalk then. Also for
other Aiders, this would be a nice opportunity to meet and work together!

Janko

--
Janko Mivšek
AIDA/Web
Smalltalk Web Application Server
http://www.aidaweb.si
_______________________________________________
Aida mailing list
[hidden email]
http://lists.aidaweb.si/mailman/listinfo/aida