Go to file
Joachim Lusiardi 5a447763d0 Merge branch 'development' into 'master'
Merge branch 'development' into 'master'

Merge preparation for  Danielle

This adds the following features:
 * Add accounting for additional consumable materials (#5)
 * Add cost field to pit stop (#4)
 * Make last pit stop editable / deletable (#3)

See merge request !19
2016-07-17 09:40:54 +02:00
app Merge branch 'issue_5_more_consumable_material' into development 2016-07-17 09:22:38 +02:00
compose_config added demo config 2016-05-26 13:54:51 +02:00
database_upgrades db update script and some fixes 2016-07-16 12:07:01 +02:00
.gitignore introduces modules 2016-04-23 23:08:39 +02:00
Dockerfile Fixed project structure for pycharm 2016-07-03 19:29:30 +02:00
README.md Merge branch 'issue_5_more_consumable_material' into pycharm 2016-07-16 19:29:25 +02:00
config.py Merge branch 'issue_5_more_consumable_material' into pycharm 2016-07-16 19:29:25 +02:00
create_icons.sh introduces modules 2016-04-23 23:08:39 +02:00
docker-compose.yml added demo config 2016-05-26 13:54:51 +02:00
icon_orig.png tuned apple icon 2015-03-22 11:02:59 +01:00
main.py Fixed project structure for pycharm 2016-07-03 19:29:30 +02:00
requirements.txt Fixed project structure for pycharm 2016-07-03 19:29:30 +02:00

README.md

How to build & run

build

docker build --tag=$(basename $PWD) .

general configuration

Look at app/config/email.py.example* for the configuration of the parameters required for sending emails. Copy the file as email.py to a folder that will serve as configuration directory and fill in the information. The directory will be used as volume during container operation.

start database

docker run --name pitstops_db -e MYSQL_ROOT_PASSWORD=$SOMESECUREPASSWORD$ -e MYSQL_DATABASE=pitstops -d mysql:latest

Database migrations

From Cathrine to Master:

ALTER TABLE pitstop ADD COLUMN costs DECIMAL(5,2) NOT NULL DEFAULT 0.0 AFTER vehicle_id;

run in development

Include the development version of the code as volume, so the app gets reloaded automatically. The sqlite file will be stored in tmp so it can be inspected with tools like sqlite3. The switch DEBUG enables debugging during development.

docker run --rm --name rollerverbrauch -ti -v $PWD/app:/app --link pitstops_db:database -p 5000:5000 -e SECURITY_PASSWORD_SALT=XXX -e SECRET_KEY=XXX -e MAIL_SERVER=XXX -e MAIL_USERNAME=XXX -e MAIL_PASSWORD=XXX rollerverbrauch

run in production

docker run --name pitstops -d -v /data/pitstops/:/data -v /configs/pitstops/:/app/config -p 80:5000 rollerverbrauch