Software for controlling megacell charger lithium cell testing devices
This guide walks you through deploying the app on an Ubuntu instance using Docker Compose, providing a straightforward way to get the app up and running.
Ubuntu Desktop 22 (or the latest version) Internet connection Step 1: Set Up Ubuntu Install the latest version of Ubuntu Desktop on a virtual machine (VM) or a physical machine as per your preference.
Update your package lists and install Docker and Docker Compose using the following commands:
sudo apt update
sudo apt install docker.io -y
sudo apt install docker-compose
Install Git, clone the repository, and navigate to the project directory:
sudo apt install git
cd ~
git clone https://github.com/alex3dbros/megacnc.git
cd megacnc
Build the Docker images and launch the app for the first time with Docker Compose:
sudo docker-compose up --build
While the app is running, open a new terminal to initialize the database. First, check the running containers:
sudo docker ps
Look for a container named megacnc_web_1. Then, execute the following commands to make and apply database migrations:
sudo docker exec megacnc_web_1 python manage.py makemigrations
sudo docker exec megacnc_web_1 python manage.py migrate
Return to the terminal where Docker Compose is running, press CTRL+C to stop the containers, and then restart them:
sudo docker-compose up
Your app should now be accessible on the VM. Open a web browser and navigate to http://
cd megacnc
git pull
sudo docker-compose down
sudo docker-compose up --build
sudo docker exec megacnc_web_1 python manage.py makemigrations
sudo docker exec megacnc_web_1 python manage.py migrate
sudo docker exec -it megacnc_web_1 sh -c "echo 'y' | python manage.py makemigrations --merge"
https://buy.stripe.com/8wMdUmaZ00mc67m4gk
https://www.paypal.com/donate/?hosted_button_id=B8Z5L9NE86KLC