forked from rho_n/hpr_generator
Update instructions for creating SQLite db
Update the main README file and the POD Installation section of the site-configuration program.
This commit is contained in:
parent
add92ef20d
commit
24a12a5af3
13
README.md
13
README.md
@ -4,10 +4,15 @@ Static web page generator for the Hacker Public Radio website.
|
|||||||
## Installation
|
## Installation
|
||||||
* Clone or download this repository
|
* Clone or download this repository
|
||||||
* With SQLite
|
* With SQLite
|
||||||
* Create the sqlite3 database from the files in the _sql directory. The default name for the database file is "hpr.db" and should be located in the root of the project directory. The name and location can be set in the site.cfg file.
|
* Create the sqlite3 database from the hpr.sql MySQL dump file available on
|
||||||
* Two sql helper scripts are available to generate an empty database or a database filled with test data.
|
hackerpublicradio.org. The default name for the database file is "hpr.db"
|
||||||
- For an empty database: `cat Create_Database_Empty.sql | sqlite3 hpr.db`
|
and should be located in the root of the project directory. The name and
|
||||||
- For a database with test data: `cat Create_Database_Test.sql | sqlite3 hpr.db`
|
location can be set in the site.cfg file.
|
||||||
|
* An "update-hpr.sh" helper script is available in the utils directory. This
|
||||||
|
script will download the hpr.sql file, convert it to the SQLite hpr.db file,
|
||||||
|
and regenerate the website using the site-generator.
|
||||||
|
1. `cd` into the root of the project directory
|
||||||
|
2. Run `./utils/update-hpr.sh`
|
||||||
* SQLite v3.8.3 or greater is recommended. CTE WITH clauses are used in some template queries. Must convert WITH
|
* SQLite v3.8.3 or greater is recommended. CTE WITH clauses are used in some template queries. Must convert WITH
|
||||||
clauses to sub-queries when using earlier versions of SQLite.
|
clauses to sub-queries when using earlier versions of SQLite.
|
||||||
* With MySQL
|
* With MySQL
|
||||||
|
@ -36,12 +36,15 @@ This is a site generator for the Hacker Public Radio website based upon the Perl
|
|||||||
=head1 INSTALLATION
|
=head1 INSTALLATION
|
||||||
|
|
||||||
With SQLite
|
With SQLite
|
||||||
* Create the sqlite3 database from the files in the _sql directory. The default name for the
|
* Create the sqlite3 database from the hpr.sql MySQL dump file available on
|
||||||
database file is "hpr.db" and should be located in the root of the project directory. The
|
hackerpublicradio.org. The default name for the database file is "hpr.db"
|
||||||
name and location can be set in the site.cfg file.
|
and should be located in the root of the project directory. The name and
|
||||||
* Two sql helper scripts are available to generate an empty database or a database filled with test data.
|
location can be set in the site.cfg file.
|
||||||
- For an empty database: cat Create_Database_Empty.sql | sqlite3 hpr.db
|
* An "update-hpr.sh" helper script is available in the utils directory. This
|
||||||
- For a database with test data: cat Create_Database_Test.sql | sqlite3 hpr.db
|
script will download the hpr.sql file, convert it to the SQLite hpr.db file,
|
||||||
|
and regenerate the website using the site-generator.
|
||||||
|
1. `cd` into the root of the project directory
|
||||||
|
2. Run `./utils/update-hpr.sh`
|
||||||
* SQLite v3.8.3 or greater is recommended. CTE WITH clauses are used in some template queries.
|
* SQLite v3.8.3 or greater is recommended. CTE WITH clauses are used in some template queries.
|
||||||
Must convert WITH clauses to sub-queries when using earlier versions of SQLite.
|
Must convert WITH clauses to sub-queries when using earlier versions of SQLite.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user