Auto Deployment Multiple Node.js App in Docker Lab.
sh ./up.sh mysql # or nginx, redis, mysql
sh ./down.sh mysql # or nginx, redis, mysql
sh ./reboot.sh mysql # or nginx, redis, mysql
sh ./reload-nginx.sh
if sh ./xxx.sh
get error Syntax error: redirection unexpected
, you can try bash ./xxx.sh
.
After init DB, You can set User Permissions and Create Table
GRANT ALL PRIVILEGES ON *.* TO 'www-root'@'%'; FLUSH PRIVILEGES;
Server input box Please input service_name
, NOT container_name
In order to avoid confusion between the prod
and dev
env, the dynamic-title-info
plugin is enabled by default, and the plugin is located in ./var/www/html/plugins
.