diff --git a/BH/settings.py b/BH/settings.py index a876ea9..736261b 100644 --- a/BH/settings.py +++ b/BH/settings.py @@ -29,7 +29,7 @@ load_dotenv() SECRET_KEY = os.getenv('SECRET_KEY') # SECURITY WARNING: don't run with debug turned on in production! -DEBUG = False +DEBUG = True ALLOWED_HOSTS = ['localhost', '127.0.0.1', 'beyond-heroes.com', 'www.beyond-heroes.com'] diff --git a/Dockerfile b/Dockerfile index abc08dd..581651f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,6 +10,3 @@ ENV MARIADB_PASSWORD=DB_PASSWORD # Expose the MariaDB port EXPOSE 3306 - -# Start the MariaDB service -CMD ["mysqld"] diff --git a/TestInstructions.md b/TestInstructions.md new file mode 100644 index 0000000..37a60ec --- /dev/null +++ b/TestInstructions.md @@ -0,0 +1,17 @@ +First of change the Env variables in the .env and the docker-compose.yml file to your own values. + +Then create the docker container and run it with the following command: +```bash +docker-compose up --build +``` +This starts the Database \ +Then run the following command to create the database tables: +```bash +python manage.py migrate +python manage.py migrate --run-syncdb +``` + +At last, run the following command to start the server: +```bash +python manage.py runserver 3030 +``` \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index 0a45027..1672b08 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -13,9 +13,3 @@ services: MARIADB_PASSWORD: 'DB_PASSWORD' ports: - "3306:3306" - volumes: - - mariadb_data:/var/lib/mysql - -volumes: - mariadb_data: -