think/docker/start.sh

15 lines
229 B
Bash
Raw Normal View History

2022-05-22 09:03:29 +00:00
#!/bin/sh
### Author:jonnyan404
### date:2022年5月22日
2022-06-28 12:26:30 +00:00
2022-05-22 09:03:29 +00:00
CONFIG_FILE='/app/config/prod.yaml'
if [ ! -f $CONFIG_FILE ]; then
2022-06-28 12:26:30 +00:00
cp -f /app/config/docker-prod-sample.yaml $CONFIG_FILE
2022-05-22 09:03:29 +00:00
else
2022-06-28 12:26:30 +00:00
echo ""
2022-05-22 09:03:29 +00:00
fi
2022-06-28 12:26:30 +00:00
2022-05-22 09:03:29 +00:00
pnpm run pm2
pm2 logs