aboutsummaryrefslogtreecommitdiffstats
path: root/README
diff options
context:
space:
mode:
Diffstat (limited to 'README')
-rw-r--r--README16
1 files changed, 10 insertions, 6 deletions
diff --git a/README b/README
index ddc1932..a0a84f2 100644
--- a/README
+++ b/README
@@ -24,11 +24,11 @@ elsewhere.
Why not just use a database or the million other CMS software packages out
there? Zero reason not to! I just wanted to see what it would look like to
build something from the ground up WITHOUT having to copy HTML over and over
-again. Databases are great, but so are filesystems, and I see no reason to
+again. Databases are great, but so are file systems, and I see no reason to
overcomplicate when making a simple home page. This software is primarily
geared towards bloggers or people who want a home page like it's 1999, but
Flask has great documentation so I think you'll find it a pleasure to build on
-top of.
+top of if you want to get creative.
### Why not just neocities?
@@ -58,8 +58,10 @@ $ python server.py
```
Your server will (by default) be hosted on http://127.0.0.1:5000
-and have the `templates/site/` directory mounted. You should see `home.html`
-render.
+and have the `templates/site/` directory delivered to your users when they
+access http://127.0.0.1:5000/site/
+
+You should see `home.html` render on the root directory.
## Adding Pages
@@ -70,7 +72,7 @@ particular is special since it contains the top-level folders which will be
used to navigate your site, but any folders beneath will be automatically
indexed.
-As an excercise, add a file to the `templates/site/thoughts/rants` folder
+As an exercise, add a file to the `templates/site/thoughts/rants` folder
called `myrant.html` and put the following content:
`<p>I don't like spam!</p>`
@@ -185,7 +187,7 @@ replace the HTML with your own license (or none), by editing
`templates/site/license.html`
-### Other tips
+### Other Tips
There are a few special directories linked that are needed to
customize your site. First the `static` directory, which holds your static
@@ -204,6 +206,8 @@ documented. A quickstart looks like this:
```bash
$ sudo pip install uwsgi
+$ sudo mkdir /var/path/to/your-flask/
+$ sudo chown www-data -R /var/path/to/your-flask
$ uwsgi -s /var/path/to/your-flask.sock --manage-script-name --mount /=server:app --virtualenv ./env
```