mirror of
https://github.com/opensupports/opensupports.git
synced 2025-04-08 18:35:06 +02:00
[DEV-190] Mount folder with instructions on how to initialize
This commit is contained in:
parent
23b65406a9
commit
b1d85fd908
1
server/.start-db/init-db.sh
Normal file
1
server/.start-db/init-db.sh
Normal file
@ -0,0 +1 @@
|
||||
mysql -u root -e "CREATE DATABASE IF NOT EXISTS development;"
|
@ -14,11 +14,11 @@ install:
|
||||
@docker exec -u root -it opensupports-db bash -c "mysql -u root -e \"CREATE DATABASE IF NOT EXISTS development;\" " || echo "${red}Please execute 'make run' first${reset}"
|
||||
|
||||
install-not-interactive:
|
||||
echo "${yellow}About to run COMPOSER INSTALL${reset}"
|
||||
# echo "${yellow}About to run COMPOSER INSTALL${reset}"
|
||||
docker exec opensupports-srv bash -c "cd /var/www/html && composer install" || echo "${red}Please execute 'make run' first${reset}"
|
||||
echo "${yellow}About to run CREATE DATABASE IF NOT EXISTS${reset}"
|
||||
docker exec -u root opensupports-db bash -c "/etc/init.d/mysql status; /etc/init.d/mysql start; mysql -u root -e \"CREATE DATABASE IF NOT EXISTS development;\" " || echo "${red}Please execute 'make run' first${reset}"
|
||||
echo "${yellow}About to FINISH INSTALL-NOT-INTERACTIVE${reset}"
|
||||
# echo "${yellow}About to run CREATE DATABASE IF NOT EXISTS${reset}"
|
||||
# docker exec -u root opensupports-db bash -c "/etc/init.d/mysql status; /etc/init.d/mysql start; mysql -u root -e \"CREATE DATABASE IF NOT EXISTS development;\" " || echo "${red}Please execute 'make run' first${reset}"
|
||||
# echo "${yellow}About to FINISH INSTALL-NOT-INTERACTIVE${reset}"
|
||||
|
||||
setup-vendor-permissions:
|
||||
@docker exec opensupports-srv bash -c "cd /var/www/html && chmod 777 -R vendor/ezyang" || echo "${red}Please execute 'make run' first${reset}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user