Snipt.net is closing on December 31st, 2016

For more information, please visit this blog post.

snipt

Ctrl+h for KB shortcuts

Bash

use fabric to create a new blog from ghm blog platform

fab create_blog:d=domain,h=localhost,u=dbuser,p=dbpass,db=dbname
https://snipt.net/embed/4d00261f08dabe98a84432425f11ddfd/
https://snipt.net/raw/4d00261f08dabe98a84432425f11ddfd/
4d00261f08dabe98a84432425f11ddfd
bash
Bash
1
2016-12-06T17:52:15
True
False
False
/api/public/snipt/2614/
use-fabric-to-create-a-new-blog-from-ghm-blog-platform
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>fab create_blog:d<span class="o">=</span>domain,h<span class="o">=</span>localhost,u<span class="o">=</span>dbuser,p<span class="o">=</span>dbpass,db<span class="o">=</span>dbname </span></pre></div> </td></tr></table>
drupal, fabric
https://snipt.net/embed/71fd20085df83986418d620fa3e092f4/
https://snipt.net/raw/71fd20085df83986418d620fa3e092f4/
71fd20085df83986418d620fa3e092f4
python
Python
1
2016-11-25T20:08:05
True
False
False
/api/public/snipt/2340/
deploy-a-project-using-fabric-without-committing-changes
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="n">fab</span> <span class="n">deploy</span> </span></pre></div> </td></tr></table>
fabric, python

Python

deploy a project using fabric and commit changes

fab deploy:m='my subversion message'
https://snipt.net/embed/dd05e0fd9958aac06ad68b74a49dc94f/
https://snipt.net/raw/dd05e0fd9958aac06ad68b74a49dc94f/
dd05e0fd9958aac06ad68b74a49dc94f
python
Python
1
2016-11-25T13:44:19
True
False
False
/api/public/snipt/2339/
deploy-a-project-using-fabric
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="n">fab</span> <span class="n">deploy</span><span class="p">:</span><span class="n">m</span><span class="o">=</span><span class="s1">&#39;my subversion message&#39;</span> </span></pre></div> </td></tr></table>
fabric, python

Python

run fabric update command within project

fab update
https://snipt.net/embed/0ce8a4a8f79409dd5af0112afca35486/
https://snipt.net/raw/0ce8a4a8f79409dd5af0112afca35486/
0ce8a4a8f79409dd5af0112afca35486
python
Python
1
2016-11-29T05:25:52
True
False
False
/api/public/snipt/2338/
run-fabric-update-command-within-project
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="n">fab</span> <span class="n">update</span> </span></pre></div> </td></tr></table>
fabric, python

Python

how to set fabric config settings in older versions of fabric

set(fab_hosts = ['production.server.com'])
https://snipt.net/embed/4e530831daf5c5bf6c106f221d40b727/
https://snipt.net/raw/4e530831daf5c5bf6c106f221d40b727/
4e530831daf5c5bf6c106f221d40b727
python
Python
1
2016-12-01T04:24:25
True
False
False
/api/public/snipt/2335/
how-to-set-fabric-config-settings-in-older-versions-of-fabric
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="nb">set</span><span class="p">(</span><span class="n">fab_hosts</span> <span class="o">=</span> <span class="p">[</span><span class="s1">&#39;production.server.com&#39;</span><span class="p">])</span> </span></pre></div> </td></tr></table>
fabfile, fabric, python
Copyrighted, illegal, or inappropriate content? Email [email protected].