Issue a selfsign SSL certificate: use https://github.com/tbson/localca to create one.
Copy all files to nginx/ssl/app_name
Add - ../../web/24ho/api/public/:/resource/public/24ho
to volumes
of nginx
if not exist.
./setup app_name domain.test dev
docker-compose build
./restart
# Migrate tables:
./manage migrate
# Start django dev server:
./devserver
# Start webpack dev server:
./yarn start
# Seeding users:
# Staff: admin/password
# Customer: user/password
./manage user_seeding
# Running test:
./test
Prepare accounts for logging
./manage collectstatic
Then go to django admin interface: https://24ho.test/dadmin/
- Create new user in
Users
section and give this user all permissions. - Add an administrator in
Administrators
section using newly created user. - Login: https://24ho.test/admin/
Issue a SSL for domain.com
using Let’s Encrypt.
Add
- /etc/letsencrypt:/resource/ssl
- ../../code/24ho/api/public/:/resourece/public/24ho
To volumes
of nginx
if not exist.
./setup app_name domain.com pro
docker-compose build
Place db.sql
file in docker
folder
Uncomment
# - ./db.sql:/docker-entrypoint-initdb.d/db.sql
./up