Using Attached Files in Mephisto

June 14th, 2007

The Mephisto blog engine has added the facility to attach files to an article rather than just embedding in the article content itself.

I’ve now added some code which will show an attached image at the start on an article. You can do this by editing the home.liquid template to something like this:


{% if article.assets.size != 0 %}
  {% for asset in article.assets %}
    {% if asset.is_image %}
      <p class="image"><img src="{{ asset.path }}"/></p>
    {% endif %}
  {% endfor %}
{% endif %}

Liverail to RailsMachine

June 13th, 2007

I’ve just completed a switch over of hosting on liverail.net from TextDrive to RailsMachine and I must say I could not be happier with the experience.

The TextDrive hosting I was using was a shared installation and mephisto is not happy on shared hosting. Instead the virtualised Linux hosting provided by Railsmachine is truly excellent. All my previous problems with Mephisto such as out of memory errors, asset problems, comment problems and submitting large posts has gone. It is also considerably faster.

The capistrano deployment recipes on RailsMachine made it supremely easy to deploy a Rails application.

Right result all round. I can now get round to actually blogging rather than fighting to keep it running.

I havn’t as yet migrated the svn repository so you may be unable to download the RailsDAV or mephisto webdav plugins.

UPDATE: Anonymous SVN access is back. For anyone interested to setup read access for anonymous SVN at railsmachine I followed the instructions at How do I install mod_dav_svn? but changed the line in the domain config /etc/httpd/conf/apps/.conf from

Require valid-user
to
  <LimitExcept GET PROPFIND OPTIONS REPORT>
    Require valid-user
  </LimitExcept>