This commit is contained in:
Aanand Prasad 2014-03-25 12:27:02 +00:00
commit 3d5190d6d4
8 changed files with 10 additions and 20 deletions

View file

@ -6,7 +6,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href='http://fonts.googleapis.com/css?family=Lilita+One|Lato:300,400,700' rel='stylesheet' type='text/css'>
<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="css/fig.css?20140305091426861355716">
<link rel="stylesheet" type="text/css" href="css/fig.css?20140325121247354724559">
</head>
<body>
<div class="container">

View file

@ -6,7 +6,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href='http://fonts.googleapis.com/css?family=Lilita+One|Lato:300,400,700' rel='stylesheet' type='text/css'>
<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="css/fig.css?20140305091426861355716">
<link rel="stylesheet" type="text/css" href="css/fig.css?20140325121247354724559">
</head>
<body>
<div class="container">
@ -48,7 +48,7 @@ web:
links:
- db
</code></pre></div>
<p>See the <a href=""><code>fig.yml</code> reference</a> for more information on how it works.</p>
<p>See the <a href="http://orchardup.github.io/fig/yml.html"><code>fig.yml</code> reference</a> for more information on how it works.</p>
<p>We can now start a Django project using <code>fig run</code>:</p>
<div class="highlight"><pre><code class="text language-text" data-lang="text">$ fig run web django-admin.py startproject figexample .

View file

@ -6,7 +6,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href='http://fonts.googleapis.com/css?family=Lilita+One|Lato:300,400,700' rel='stylesheet' type='text/css'>
<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="css/fig.css?20140305091426861355716">
<link rel="stylesheet" type="text/css" href="css/fig.css?20140325121247354724559">
</head>
<body>
<div class="container">

View file

@ -6,7 +6,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href='http://fonts.googleapis.com/css?family=Lilita+One|Lato:300,400,700' rel='stylesheet' type='text/css'>
<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="css/fig.css?20140305091426861355716">
<link rel="stylesheet" type="text/css" href="css/fig.css?20140325121247354724559">
</head>
<body>
<div class="container">
@ -57,17 +57,7 @@ RUN pip install -r requirements.txt
<p>Let&#39;s get a basic Python web app running on Fig. It assumes a little knowledge of Python, but the concepts should be clear if you&#39;re not familiar with it.</p>
<p>First, install Docker. If you&#39;re on OS X, you can use <a href="https://github.com/noplay/docker-osx">docker-osx</a>:</p>
<div class="highlight"><pre><code class="text language-text" data-lang="text">$ curl https://raw.github.com/noplay/docker-osx/0.7.6/docker-osx &gt; /usr/local/bin/docker-osx
$ chmod +x /usr/local/bin/docker-osx
$ docker-osx shell
</code></pre></div>
<p>Docker has guides for <a href="http://docs.docker.io/en/latest/installation/ubuntulinux/">Ubuntu</a> and <a href="http://docs.docker.io/en/latest/installation/">other platforms</a> in their documentation.</p>
<p>Next, install Fig:</p>
<div class="highlight"><pre><code class="text language-text" data-lang="text">$ sudo pip install -U fig
</code></pre></div>
<p>(This command also upgrades Fig when we release a new version. If you dont have pip installed, try <code>brew install python</code> or <code>apt-get install python-pip</code>.)</p>
<p>First, <a href="install.html">install Docker and Fig</a>.</p>
<p>You&#39;ll want to make a directory for the project:</p>
<div class="highlight"><pre><code class="text language-text" data-lang="text">$ mkdir figtest

View file

@ -6,7 +6,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href='http://fonts.googleapis.com/css?family=Lilita+One|Lato:300,400,700' rel='stylesheet' type='text/css'>
<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="css/fig.css?20140305091426861355716">
<link rel="stylesheet" type="text/css" href="css/fig.css?20140325121247354724559">
</head>
<body>
<div class="container">

View file

@ -6,7 +6,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href='http://fonts.googleapis.com/css?family=Lilita+One|Lato:300,400,700' rel='stylesheet' type='text/css'>
<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="css/fig.css?20140305091426861355716">
<link rel="stylesheet" type="text/css" href="css/fig.css?20140325121247354724559">
</head>
<body>
<div class="container">

View file

@ -6,7 +6,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href='http://fonts.googleapis.com/css?family=Lilita+One|Lato:300,400,700' rel='stylesheet' type='text/css'>
<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="css/fig.css?20140305091426861355716">
<link rel="stylesheet" type="text/css" href="css/fig.css?20140325121247354724559">
</head>
<body>
<div class="container">

View file

@ -6,7 +6,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href='http://fonts.googleapis.com/css?family=Lilita+One|Lato:300,400,700' rel='stylesheet' type='text/css'>
<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="css/fig.css?20140305091426861355716">
<link rel="stylesheet" type="text/css" href="css/fig.css?20140325121247354724559">
</head>
<body>
<div class="container">