Skip to content

Instantly share code, notes, and snippets.

@mangreen
Last active August 29, 2015 14:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mangreen/374d1e4743c0554aabfb to your computer and use it in GitHub Desktop.
Save mangreen/374d1e4743c0554aabfb to your computer and use it in GitHub Desktop.
AdPlay Environment Setup
1. 安裝VirtualBox
2. 安裝 Vagrant
3. 建立Bitbucket帳號
4. 安裝 SourceTree
5. 建立資料夾 [安裝目錄] /workspace/ubuntu/
6. 在ubuntu執行 vagrant init ubuntu/trusty64
7. $ vagrant up
8. $ vagrant ssh或使用pietty連線localhost:2222 帳密vagrant/vagrant
9. (安裝指令請至Kytu的github https://gist.github.com/kytu800/c1c4d0336e5963051c62 )
安裝:
git
node.js
mongodb
redis //一種noSQL資料庫
10. 連至Bitbucket https://bitbucket.org/vm5dev/
git安裝adplay
Step 1: check & generate SSH key
(教學 https://help.github.com/articles/generating-ssh-keys)
Step 2: add SSH key to Bitbucket
$ eval `ssh-agent -s`
$ ssh-add
複製SSH公鑰至Bitbucket
Step 3: $ git clone git@bitbucket.org:vm5dev/web-adplay.git
11. $ cd web-adplay
$ npm install
$ cp config/local-development-template.js config/local.js
12. $ sudo npm install –g bower
$ bower install
13. 至[安裝目錄]/workspace/ubuntu/下
編輯Vagrantfile, 反註解config.vm.network "private_network", ip: "192.168.33.10"
Cmd下重開Vagrant, $ vagrant reload
Pietty重連
14. $ cd web-adplay
$ node server.js
15.
ps. windows下安裝bower
遇到需要fix bower ECMDERR http://stackoverflow.com/questions/21789683/howto-fix-bower-ecmderr
$ git config --global url."https://".insteadOf git://
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment