librelist archives

« back to archive

Re: Blohg question

Re: Blohg question

From:
Rafael Martins
Date:
2011-08-10 @ 17:52
On Wed, Aug 10, 2011 at 1:50 PM, Ali Kefia <ali.kefia@gmail.com> 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
>
>

Hmm,

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
solution,
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,

[1] http://docs.blohg.org/deploy/
[2] http://flask.pocoo.org/docs/deploying/

Best regards,

-- 
Rafael Goncalves Martins
http://rafaelmartins.eng.br/