git clone https://github.com/letsspeak/Stock.git && cd Stock
docker build ./Docker/ci/
ordocker pull letsspeak/stock-ci:latest
export CID=$(docker run -d -it -p 8080:8080 letsspeak/stock-ci:latest bash)
docker cp . $CID:/var/stock
docker exec $CID bash -c 'OPTIMIZE=1 make all'
docker exec $CID ./.build/release/stock serve
- open
http://localhost:8080
on your web browser
docker exec $CID pkill -U root -x stock
- Perform the above Build procedure
docker cp $CID:/var/stock ./Docker/deploy
docker build ./Docker/deploy
Note: deployment server port is 8080
$ curl -sL https://apt.vapor.sh | bash
$ sudo apt-get update
$ sudo apt-get -y install swift vapor
$
$ sudo apt-get install -y nodejs npm
$ curl -sL https://deb.nodesource.com/setup_9.x | sudo -E bash -
$ sudo apt-get install -y nodejs
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt-get update && sudo apt-get -y install yarn
$ git clone https://github.com/letsspeak/Stock.git && cd Stock
$ make all
$ brew install vapor/tap/ctls
$ brew install vapor/tap/cmysql
$ brew install yarn
$ git clone https://github.com/letsspeak/Stock.git && cd Stock
$ make all
$ make xcode
(orswift package generate-xcodeproj
)- Open generated
Stock.xcodeproj
- Select Product -> Scheme -> Edit Scheme... on Xcode menu
- Info tab with Run pane, Select Executable
Run
and checkDebug executable
- Options tab with Run pane, Check
Use custom working directory
and select*path/to/Stock
- Select Product -> Run on Xcode menu