:es: Breves instrucciones para arrancar y deterner un servidor CKAN, especialmente en modo DEBUG.

Start a production environment

A CKAN production environment is served through a web server. This site http://docs.ckan.org/en/latest/maintaining/installing/deployment.html#install-apache-modwsgi-modrpaf includes detailed instructions for configuring Apache as the web server provinding access to your CKAN installation.

You can avoid usging the nginx server, by making the apache site to listen to any connection on port 80.

<VirtualHost *:80>
  # ...

Stopping a production environment

To stop a production environment you can:

  • stop the Apache/Nginx server (the one woring at port 80, and listening to connections from everywhere),
  $ sudo service apache2 stop
  • or, disable the ckan site
  $ sudo a2dissite ckan
  $ sudo service apache2 reload

Starting a debug environment

Days ago I twitted on how to start CKAN in debug mode.

After doing so, your test CKAN will be available at http://localhost:5000

You’ll have to activate your CKAN development environment before running paster. This site http://docs.ckan.org/en/latest/maintaining/installing/install-from-source.html includes detailed instructions.

These are the needed steps:

$ source pyenv/bin/activate
(pyenv)$ paster serve /etc/ckan/default/production.ini &

Stopping a debug environment

You may kill the paster serve process.

$ ps -a | grep paster
$ kill -9 <paster_id>

If you need to restart you can try paster serve --reload <settings.ini>