librelist archives

« back to archive

Re: Blohg question

Re: Blohg question

Rafael Martins
2011-08-10 @ 17:52
On Wed, Aug 10, 2011 at 1:50 PM, Ali Kefia <> wrote:
> Hi Rafael,
> I can not check what you have said : served version is "tip".
> for me, served version is the checked out version. even if I have non
> committed changes on my folder, these are served too (test made on
> config.yaml, may be it is a special file even if it is under source control)
> My need is very simple, I want to update my website manually by hg
> pushing (serving tip version is sufficient for me). Another solution is
> to use "hg push --remotecmd" for checking out tip on target.
> One possible improvement is to have the possibility to serve a specified
> version :
> - an option on runserver command
> - a parameter on wsgi file (don't know how, but should be possible)
> Best Regards,
> Ali


you are using 'blohg runserver' to deploy your blog. This isn't
recommended, because runserver can't handle a reasonable number of
requests and enables the debug by default, as you need to be able to
serve uncommitted changes to test your new posts before commit.

You can disable the debug with 'blohg runserver --no-debug', that is
not recommended, or you can deploy your blog with a real web server
like apache+mod_wsgi or nginx+gunicorn, take a look on the docs [1].
Flask deploy docs are your friends too [2].

I hope it helps,


Best regards,

Rafael Goncalves Martins