그런데 크롬으로 접속을 하면 다운로드가 되는데 사파리에서는 안되는 현상이 발생..
원인은, 크롬에서는 알아서 조합형으로 인코딩해주는데 반해서, 사파리에서는 완성형으로 인코딩하는데서 오는 '것 같다'..
암튼 주소를
window.encodeURI(input)
해주는것으로 해결.
window.encodeURI(input)
나는 일주일에 100시간 넘게 일하는데 넌 80시간 언저리잖아. 지금보다 더 일하라는 소린 안할테니까 좀 참고 일해주라아주 비겁한 말인데, 많은 창업자들과 리더들이 아랫사람들에게 저런 생각을 가지고 있다. 나도 일하니 너도 일해야 하고 그래야 우리가 더 빨리 성공할 것이며 더 많은 것을 이룰 것이다. 실제로 그럴까?
$ gem i chef --no-ri --no-rdoc
$ knife configure이걸 실행하면 ~/.chef/knife.rb에 설정파일이 저장된다. 이것저것 물어보는데 언제나 처럼 모두 디폴트로! 그 다음 knife-solo를 실행한다.
$ gem i knife-solo --no-ri --no-rdoc
Don't repeat yourself
$ gem i berkshelf --no-ri --no-rdoc
% knife solo init chef-repo Creating kitchen... Creating knife.rb in kitchen... Creating cupboards... Setting up Berkshelf...
% tree chef-repo chef-repo ├── Berksfile #Berkshelf설정파일. rails에서의 Gemfile ├── cookbooks #Berksfile에 설정한cookbook들이 다운로드 되는 디렉토리 ├── data_bags #모름 ├── environments #잘모름 ├── nodes #모름 ├── roles #모름 └── site-cookbooks #유저가 직접 작성하는 cookbook이런 것들이 생긴다. 언제나 처럼, 모두 다 알려고 하지 말자.
% cd chef-repo % vi Berksfile하면 site :opscode라고 한줄이 써 있는데, 버전3에서 부터 문법이 바뀌었으므로 지우고 아래와 같은 줄을 추가하자
source 'https://api.berkshelf.com' cookbook 'nginx' cookbook 'git'
% berks vendor cookbooks Resolving cookbook dependencies... Fetching cookbook index from https://api.berkshelf.com... Using build-essential (2.2.3) Using dmg (2.2.2) Using chef_handler (1.1.9) Using git (4.2.2) Using yum-epel (0.6.0) Using yum (3.6.1) Using windows (1.37.0) .......이것으로 cookbooks디렉토리에 다운로드 되었다.
% vagrant init A `Vagrantfile` has been placed in this directory. You are now ready to `vagrant up` your first virtual environment! Please read the comments in the Vagrantfile as well as documentation on `vagrantup.com` for more information on using Vagrant. % vi Vagrantfile
Vagrant.configure(2) do |config|
config.vm.box = "ubuntu"
config.vm.box_url = "http://files.vagrantup.com/precise64.box"
config.vm.synced_folder "../", "/share"
config.vm.network "private_network", ip: "192.168.33.10"
config.vm.provision :chef_solo do |chef|
chef.json = {
}
chef.run_list = [
'recipe[nginx]',
"recipe[git]"
]
end
end
% vagrant up --provision Bringing machine 'default' up with 'virtualbox' provider... ==> default: Importing base box 'ubuntu'... ==> default: Matching MAC address for NAT networking... ==> default: Setting the name of the VM: chef-repo_default_1434619019668_69242 ==> default: Fixed port collision for 22 => 2222. Now on port 2200. ==> default: Clearing any previously set network interfaces... ==> default: Preparing network interfaces based on configuration... ...
% vagrant ssh Welcome to Ubuntu 12.04 LTS (GNU/Linux 3.2.0-23-generic x86_64) * Documentation: https://help.ubuntu.com/ New release '14.04.2 LTS' available. Run 'do-release-upgrade' to upgrade to it. ...git이 다운로드 되었는지 확인이 되면
vagrant@precise64:~$ git usage: git [--version] [--exec-path[=일단 내가 생각한 흐름대로 진행되었다는 뜻이 된다.]] [--html-path] [--man-path] [--info-path] [-p|--paginate|--no-pager] [--no-replace-objects] [--bare] [--git-dir= ] [--work-tree= ] [--namespace= ] [-c name=value] [--help] [ ]
EC2 인스턴스를 만들어서 인스턴스안에 서버 깔고, 레일즈 깔고, 깃 깔고, 깔고 깔고, 연결하고...
이건 당연히 나보다 머리 좋은 사람들이 뭔가를 해놓았을 것이다...
![]() |
| Welcome to the chaos |
SSH로 서버에 들어갈 필요조차 없습니다 여러분!