mirror of
https://github.com/kennethreitz/python-guide.git
synced 2026-06-05 23:00:18 +00:00
Switch examples to code-block style
This commit is contained in:
@@ -10,7 +10,7 @@ fabric is more focused on application level tasks such as deployment.
|
||||
|
||||
Install Fabric:
|
||||
|
||||
::
|
||||
.. code-block:: bash
|
||||
|
||||
$ pip install fabric
|
||||
|
||||
@@ -20,7 +20,7 @@ latter will ssh into each server, cd to our project directory, activate the
|
||||
virtual environment, pull the newest codebase, and restart the application
|
||||
server.
|
||||
|
||||
::
|
||||
.. code-block:: python
|
||||
|
||||
from fabric.api import cd, env, prefix, run, task
|
||||
|
||||
@@ -40,7 +40,7 @@ server.
|
||||
With the previous code saved in a file named fabfile.py, we can check memory
|
||||
usage with:
|
||||
|
||||
::
|
||||
.. code-block:: bash
|
||||
|
||||
$ fab memory_usage
|
||||
[my_server1] Executing task 'memory'
|
||||
@@ -59,7 +59,7 @@ usage with:
|
||||
|
||||
and we can deploy with:
|
||||
|
||||
::
|
||||
.. code-block:: bash
|
||||
|
||||
$ fab deploy
|
||||
|
||||
|
||||
Reference in New Issue
Block a user