-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
EsGeh
authored and
EsGeh
committed
Nov 12, 2019
1 parent
620e0e5
commit 2f7cb9b
Showing
4 changed files
with
107 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
# Edition Open Access 1.5 | ||
|
||
Source code for the Edition Open Access website. | ||
Publications are provided in a number of different formats: | ||
|
||
- online HTML version | ||
- Ebook (EPUB) | ||
|
||
# Installation | ||
|
||
In order to provide a consistent environment we are using docker. | ||
A set of python scripts is used for automatisation. | ||
Installing and running the project work without Docker or the scripts is possible, but not recommended. In this case you are on your own. | ||
A bunch of other repositories are needed in order to run this project. | ||
They are automatically pulled by the init script. | ||
|
||
## Configuration | ||
|
||
- Environment variables: see file `.env` | ||
|
||
These variables are available inside the `docker-compose.yaml` file and are also loaded into the python scripts. | ||
The file is created/overwritten with default settings by the `init.py` script. | ||
|
||
- Django settings: see `src/eoa/settings.py` | ||
|
||
For further information please check the django documentation. | ||
|
||
## Prerequisites | ||
|
||
- Python 3 | ||
- Docker, Docker Compose | ||
|
||
## Initialise the Repository | ||
|
||
$ ./scripts/init.py [--build] | ||
|
||
This will pull remote repositories and resources, initialize the database, etc. | ||
Force recreating the docker image by adding `--build` e.g. if `Dockerfile` or `requirements.txt` has changed. | ||
|
||
## Import Publications, Initialize CMS pages (TODO) | ||
|
||
Not yet documented. | ||
|
||
## Run the Webserver | ||
|
||
$ ./scripts/run.py | ||
|
||
The webpage can now be explored in your local browser. | ||
|
||
## Stop the Webserver | ||
|
||
$ ./scripts/stop.py | ||
|
||
## Run Command in the Webserver container | ||
|
||
$ ./scripts/exec_in_container.py [-- CMD ...] | ||
|
||
## Clean the Repository | ||
|
||
$ ./scripts/exit.py | ||
|
||
This should remove all remote repositories and resources not part of this repository. | ||
Docker images are not deleted though. | ||
|
||
# Installation for Production (TODO) | ||
|
||
Not documented yet. | ||
It might be necessary to tweak the django settings, among other adjustments. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters