startup.sh 720 B

12345678910111213141516171819
  1. #!/usr/bin/env bash
  2. #===================================================================#
  3. # Author: luolongfei <[email protected]> #
  4. # Intro: https://github.com/luolongfei/freenom #
  5. #===================================================================#
  6. set -e
  7. echo '[Info] 检测到你当前在 Heroku 环境运行容器,此环境依赖外部请求触发脚本运行,请自行前往 https://uptimerobot.com 配置心跳任务'
  8. echo '[Info] 更多部署手顺请参考文档:https://github.com/luolongfei/freenom'
  9. php run
  10. # 替换端口变量
  11. envsubst '\$PORT' < /app/nginx.template.conf > /app/nginx.conf
  12. # 启动 nginx
  13. nginx -c /app/nginx.conf -g 'daemon off;'