Skip to content

Commit

Permalink
Add install instructions
Browse files Browse the repository at this point in the history
Also, copy them to packaged application.
  • Loading branch information
thebaer committed May 19, 2017
1 parent ac04f86 commit 3e8a22e
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
18 changes: 18 additions & 0 deletions INSTALL
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@

INSTALLING HTMLHOUSE
--------------------

1. Extract the archive.
2. Run keys.sh to generate keys. This will generate a keypair in the
application's directory named `prod` and `prod.pub`.
BACK UP THESE FILES outside the application directory. If these change,
users won't be able to edit their posts anymore.
3. Run the application. Here's an example script:

export DB_USER=dbuser
export DB_PASSWORD=pass
export DB_DB=htmlhouse
export PRIVATE_KEY=keys/prod
export PUBLIC_KEY=keys/prod.pub
export PORT=8080
./htmlhouse -h="http://localhost:8080"
1 change: 1 addition & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ cp static/css/*.css build/static/css/
cp -r static/js/* build/static/js/
cp -r templates/ build/
cp keys.sh build/
cp INSTALL build/

echo -e "$L Building application..."
cd main/
Expand Down

0 comments on commit 3e8a22e

Please sign in to comment.