You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Simon Caminada 2d162d0102 add static to git 4 years ago
addons apply all Addon settings 6 years ago
addons-dev new website using base project default_v3_py3 8 years ago
bin recaptcha form fix 5 years ago
docker also in nginx 6 years ago
locale desc tag 7 years ago
private update timetable button 4 years ago
src update timetable button 4 years ago
static add static to git 4 years ago
templates fix email infos 5 years ago
.dockerignore git should not be in the app 6 years ago
.env-db.example Corrected docker-compose.yml for mprofiag environment 6 years ago
.env-local Corrected docker-compose.yml for mprofiag environment 6 years ago
.env.example Directories in .env 6 years ago
.gitignore add static to git 4 years ago
.viminfo Renamed and new scripts 5 years ago
Dockerfile Changes from server 5 years ago
Procfile new website using base project default_v3_py3 8 years ago
README.md Creating admin user notice 6 years ago
docker-build.sh Renamed and new scripts 5 years ago
docker-compose.yml link 6 years ago
docker-logs.sh Renamed and new scripts 5 years ago
docker-restart.sh Renamed and new scripts 5 years ago
docker-up.sh Renamed and new scripts 5 years ago
docker-update.sh Renamed and new scripts 5 years ago
docker-web-cli.sh Renamed and new scripts 5 years ago
gulpfile.js migrations 8 years ago
init-letsencrypt.sh updated docker conf for standalone 6 years ago
manage.py new website using base project default_v3_py3 8 years ago
migrate.sh configure baseproject default_v3_py3 3.23 8 years ago
package.json migrations 8 years ago
requirements.in add video to timetable 4 years ago
run.sh updated docker conf for standalone 6 years ago
settings.py fix password 5 years ago
urls.py migrations 8 years ago
wait-for-postgres.sh Corrected docker-compose.yml for mprofiag environment 6 years ago
wsgi.py new website using base project default_v3_py3 8 years ago

README.md

Tagesschule elementa

Docker

  1. Copy environment files .env*.example to .env* and make the configuration changes. Configure database user and ports for docker.

    • HTTP_PORT=8009 [.env] ...
  2. Main app has several mountpoints / volumes. Point them into the appropriate location on your filesystem

    • ./docker/static_collected
    • ./docker/data/media
    • ./docker/data
  3. To start

     docker-compose up
    
  4. Restore DB

     docker exec -i tagesschule_db_1 pg_restore -U django --no-owner -d db < 41ebf901-4607-4653-9b00-54a42d877b38.dump       
    
  5. Migrate

     docker-compose exec web manage.py migrate
    
  6. Add admin user

In docker container docker-compose exec web bash run

python manage.py shell

In that shell create admin user (https://stackoverflow.com/questions/18503770/how-to-create-user-from-django-shell)

user@host> manage.py shell
>>> from django.contrib.auth.models import User
>>> user=User.objects.create_user('foo', password='bar')
>>> user.is_superuser=True
>>> user.is_staff=True
>>> user.save()