Last active
February 22, 2017 03:56
-
-
Save kozy4324/29baf9e5937145aef83d3d67c2fba4c9 to your computer and use it in GitHub Desktop.
freeCodeCampをdocker-composeで動かす
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# データベースへロード | |
docker exec $(docker ps -f name=freecodecamp_server_1 -q) node seed |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git clone https://github.com/freeCodeCamp/freeCodeCamp.git | |
cd freeCodeCamp | |
git checkout -b 20160127 50a388d | |
# `loopback` `debug` `normalizr` は固定しないとダメ | |
perl -pi -e 's/"loopback": "\^2.22.0"/"loopback": "~2.22.0"/' package.json | |
perl -pi -e 's/"debug": "\^2.2.0"/"debug": "~2.2.0"/' package.json | |
perl -pi -e 's/"normalizr": "\^2.0.0"/"normalizr": "~2.0.0"/' package.json | |
npm install | |
bower install | |
npm run build | |
cp sample.env .env | |
echo NODE_ENV=production >> .env | |
git checkout staging -- docker-compose.yml | |
docker-compose up |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment