Skip to content
This repository has been archived by the owner on Jul 17, 2018. It is now read-only.

fatindeed/cjw

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cjw财务软件

调用新天地数据接口,将门店营业数据上传至服务器

Installation

  1. 下载项目源代码,并将其放到用户主目录下
cd ~
git clone https://github.com/fatindeed/cjw.git
  1. 创建配置文件var/application.ini,配置参数参考app/conf/application.ini.example
  2. 下载并安装Docker Toolbox
  3. 修改Docker Toolbox目录中的start.sh,加入以下代码:
STEP="Setting env"
ENV_CNT=0
while [ $ENV_CNT -eq 0 ]
do
  ENV_CNT=$("${DOCKER_MACHINE}" env "${VM}" | wc -l)
  sleep 5
done
eval "$(${DOCKER_MACHINE} env --shell=bash ${VM})"

runapp () {
  pushd "$1" > /dev/null
  docker-compose up -d
  popd > /dev/null
}
  1. 复制Docker Quickstart Terminal的快捷方式到启动目录,并在目标最后加上runapp cjw,如下:
"C:\Program Files\Git\bin\bash.exe" --login -i "C:\Program Files\Docker Toolbox\start.sh" runapp cjw
  1. 重启后每次开机后即会自动启动本应用

About

cjw财务软件

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published