This file contains 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
app.controller('ListCtrl', ['$scope', 'List' , function($scope, List) { | |
List.contents().then(function(data) { | |
$scope.result = data.content; | |
} ) | |
console.log($scope.result); //->undefined 출력 | |
} ] | |
); |
This file contains 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
{ | |
"scripts": { | |
"start": "npx -p node@6 -- cross-env NODE_PATH=src node scripts/start.js", | |
"build": "npx -p node@6 -- cross-env NODE_PATH=src node scripts/build.js" | |
} | |
} |
This file contains 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
aws s3 sync ./build/ s3://{BUCKET_URL}/ --acl public-read --delete |
This file contains 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
brew install lftp |
This file contains 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
lftp -u user webhost.com | |
# lftp -u {USER_NAME} {HOST} | |
lftp -u user,password webhost.com | |
# lftp -u {USER_NAME},{PASSWORD} {HOST} |
This file contains 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
mirror -R -e /Users/unk/works/project/build/ ./public_html/ | |
# mirror -R -e {SOURCE} {TARGET} | |
# -R: 로컬 -> 서버 전송 | |
# -e: 소스(로컬)에서 삭제된 파일은 타겟(서버)에서도 삭제 |
This file contains 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
lftp -u user,password webhost.com -e "mirror -R -e /Users/unk/works/project/build/ ./public_html/" | |
# lftp -e "실행할 코드" |
This file contains 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 pull linode/lamp:latest |
This file contains 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 run -i -t -d -p 4040:80 -p 33060:3306 \ | |
-v /project/name:/var/www/example.com/public_html \ | |
--name project_name linode/lamp /bin/bash |
This file contains 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 pull linode/lamp:latest | |
docker run -i -t -d -p 4040:80 -p 33060:3306 \ | |
-v /project/path:/var/www/example.com/public_html \ | |
--name project_name linode/lamp /bin/bash | |
docker exec project_name apt-get update -y | |
docker exec project_name apt-get install php5-mysqlnd php5-curl -y | |
docker exec project_name sed -i -e 's/bind-address/#bind-address/g' /etc/mysql/my.cnf | |
docker exec project_name service apache2 start | |
docker exec project_name service mysql start |
OlderNewer