1. Jon Molesa
  2. slipper


Matthew Scott  committed 3e89e2e

- use sourcecode directive

  • Participants
  • Parent commits ac83b9e
  • Branches default

Comments (0)

Files changed (1)

File doc/webfaction.txt

View file
 `virtualenv <http://pypi.python.org/pypi/virtualenv/>`__ is a
 wonderful tool for isolating Python instances and dependencies.
-Install it for Python 2.5::
+Install it for Python 2.5:
+.. sourcecode:: text
     $ easy_install-2.5 -d $HOME/lib/python2.5 -s $HOME/bin virtualenv
 Create an environment for Slipper
-Creating a new environment is easy::
+Creating a new environment is easy:
+.. sourcecode:: text
     $ cd ~
     $ virtualenv slipper.env
 Any commands run within the environment's `bin` directory run within
 the virtual environment.
-Install or upgrade it directly from the repository::
+Install or upgrade it directly from the repository:
+.. sourcecode:: text
     $ slipper.env/bin/easy_install -U \
 so we know that `Slipper` is always working with the same version.
 We need to do this manually, since Mercurial cannot be installed using
+.. sourcecode:: text
     $ source slipper.env/bin/activate
     (slipper.env)$ mkdir slipper.env/src
     In addition to setting the `rst_extension` and `cache_dir`
     settings on a per-repository basis, you may also set them globally
     by using the repository name ``DEFAULT``, as in the following
-    example::
+    example:
+    .. sourcecode:: ini
         slipper.DEFAULT.rst_extension = .txt
         slipper.DEFAULT.cache_dir = /home2/myusername/slipper.env/cache
 Change to the directory of your `Slipper` WSGI webapp, such as
 `/home2/myusername/webapps/my_slipper_wsgi`.  Start the server in
-foreground mode::
+foreground mode:
+.. sourcecode:: text
     $ cd /home2/myusername/webapps/my_slipper_wsgi
     $ ~/slipper.env/bin/paster serve --reload slipper.ini
 Now make that available as ``http://mysite.com/`` and make other
 resources available as well by creating, or adding to, the
 ``.htaccess`` file in the directory of your static app, such as
+.. sourcecode:: apache
     RewriteEngine On
     RewriteBase /
     point rather than ``/`` as shown in these examples.
 To make available specific versions, add some more rules, paying
-attention to proper ordering (since they are evaluated sequentially)::
+attention to proper ordering (since they are evaluated sequentially):
+.. sourcecode:: apache
     RewriteEngine On
     RewriteBase /
 Stop the slipper server you started above by pressing `Ctrl-C`.
-Open your `crontab` for editing::
+Open your `crontab` for editing:
+.. sourcecode:: text
     $ crontab -e
 Add a new entry to the file to start the server and keep its PID
-within your webapp directory::
+within your webapp directory:
+.. sourcecode:: text
     6,26,46 * * * * $HOME/slipper.env/bin/paster serve \
         --daemon --pid-file=$HOME/webapps/my_slipper_wsgi/slipper.pid \
 place a ``#`` character in front of each line to comment out the
 startup command.
-Run the command to stop your app::
+Run the command to stop your app:
+.. sourcecode:: text
     $ ~/slipper.env/bin/paster serve --stop-daemon \