3) Ddev installation procedure
Required docker version (Docker version 20.10.25)
Required docker-compose version( docker-compose version 1.25.0)
Docker installation must be root less
Install the ddev at our pc using below command
curl -fsSL https://ddev.com/install.sh | bash
In this documentation directory we can see ddev and sql file zip folder ,
download and extract to endu directory
Checkout to our present branch using below command
git checkout dev-cn-2023
Below command to start the ddev
Ddev start
After successful installation import the sql file
ddev import-db --file=tmp.sql.gz
If u got any errors please check log file using (ddev logs)
Go to ssh (shelll) ddev terminal by below command
ddev ssh
composer install
composer update
composer dump-autoload
php artisan optimize:clear
ddev artisan key:generate
To check node version using (node -v) -> (my version -> v16.20.2)
To check php version using (php -v) -> php 7.4.3
All installation is over you can come back from ssh or shell using (exit ) command
You can our website url to check everything installation over
Some useful commands
ddev ssh ( go to ddev shell)
ddev yarn watch ( continuos compiling for vue version)
ddev status ( to know which ports had been using by ddev)
ddev stop ( to stop ddev docker)
ddev restart ( to restart the ddev docker)
ddev phpmyadmin ( to open the sql database panel)
sudo service apache2 stop ( if u encounter an error regarding localhost:80 port already running , at that you can use this command to stop at thaat port)
ddev stop --unlist endu ( to unlist from all location to start at new)
To make rootless docker
sudo docker info
sudo systemctl status docker
sudo usermod -aG docker ${USER}
su - ${USER}
sudo service apache2 stop
groups
If you have any apaches servers or xampp servers running on your pc,
Ist stop that servers
sudo /opt/lampp/lampp stop
sudo service apache2 stop
cd endu
sudo update-alternatives --set php /usr/bin/php7.4
ddev stop
ddev start
ddev yarn watch
linux
To access db from server:
DB_PASSWORD="password"
mysql -h host -u username -p
use dev_cn;
show tables;
select * from table_name;
https://demos.pixinvent.com/vuexy-html-admin-template/html/vertical-menu-template-dark/
No comments:
Post a Comment