You can load the full TinyBlog application using the following snippet:
To test it, you should launch the Seaside HTTP server. You can now complete or finish your application et commit it in your Smalltalkhub repository.
Now that you have finished to develop your blog web application, we will see how to deploy it on a server in the cloud.
If you want to deploy your application on your own server, we encourage you to read the last chapter of the book "Enterprise Pharo: a Web Perspective" (http://books.pharo.org).
In this tutorial, we will describe a simpler solution provided by PharoCloud (http://pharocloud.com).
PharoCloud is a hosting service dedicated to Pharo web application that offers a free testing plan (ephemeric cloud subscription).
Set-up your PharoCloud account:
Currently, PharoCloud only supports Pharo 4 images.
So, download a PharoWeb 4 image. https://ci.inria.fr/pharo-contribution/job/PharoWeb/PHARO=40,VERSION=stable,VM=vm/lastSuccessfulBuild/artifact/PharoWeb.zip. You should also download a virtual machine for Pharo 4 images http://get.pharo.org/vm40. Then, launch this image using this VM and we will configure it.
Let's strat by configuring Seaside by removing all demos applications and all development tools:
Now, you can load the TinyBlog application:
or your application directly from your Smalltalkhub code repository:
We now configure Seaside to use TinyBlog as the default application and we launch the HTTP server.
You can now save the Pharo image (World Menu > save) and test locally with a web browser on the URL: http://localhost:8080.
You just need to create and archive (zip file) that contains both the
Then, drag'n drop this archive file on the Ephemeric Cloud web page and activate this Pharo image (play button) as shown in figure 67.1.
If you clic on the public URL provided Ephemeric Cloud, you should see your web application as displayed on figure 67.2.