Moving to pelican

June 18, 2014
Translations: es

My previous blogging system was wordpress, unfortunately a disaster ensued, the hosting service had a security breach, and my blog was a victim of phishing. So to ensure my domain name was not suspended I decided, delete it

Some time ago had heard of Pelican, but never I had deployed it in production , so this was an opportunity to do so, then I tell them my experience.

How to install pelican

Virtualenv

Pelican is very easy to install using pip in virtualenv.

[~]# pip install virtualenv
[~]# pip install virtualenvwrapper

Create a directory named .virtualenvs in your $HOME

[~]# mkdir .virtualenvs

add in your .bashrc

export WORKON_HOME=$HOME/.virtualenvs
source /usr/bin/virtualenvwrapper.sh 

and then simply do:

$ pip install pelican
$ pip install Markdown

It only remains to create your environment blogging with the command pelican-quickstart

$ pelican-quickstart
Welcome to pelican-quickstart v3.2.2.

This script will help you create a new Pelican-based website.

Please answer the following questions so this script can generate the files
needed by Pelican.

> Where do you want to create your new web site? [.] 
> What will be the title of this web site? echevemaster's blog 
> Who will be the author of this web site? Eduardo Echeverria
> What will be the default language of this web site? [en] 
> Do you want to specify a URL prefix? e.g., http://example.com   (Y/n) Y
> What is your URL prefix? (see above example; no trailing slash) http://echevemaster.org
> Do you want to enable article pagination? (Y/n) Y
> How many articles per page do you want? [10] 
> Do you want to generate a Makefile to easily manage your website? (Y/n) Y
> Do you want an auto-reload & simpleHTTP script to assist with theme and site development? (Y/n) Y
> Do you want to upload your website using FTP? (y/N) N
> Do you want to upload your website using SSH? (y/N) Y
> What is the hostname of your SSH server? [localhost] ip.add.ress
> What is the port of your SSH server? [22] 
> What is your username on that server? [root] username 
> Where do you want to put your web site on that server? [/var/www] /somedirectory 
> Do you want to upload your website using Dropbox? (y/N) N
> Do you want to upload your website using S3? (y/N) N

Configure pelicanconf.py, you can see further details in Pelican docs

Category: Coding Tagged: python pelican fedora

Translations: es

comments

Page 1 of 1