diff options
author | NavaL <ayoyo@thoughtworks.com> | 2016-02-09 13:41:21 +0100 |
---|---|---|
committer | NavaL <ayoyo@thoughtworks.com> | 2016-02-09 16:09:45 +0100 |
commit | 61c89b9ebef4ad6d1bf7eb01e48745eccb0a6bda (patch) | |
tree | 7af9dfe164ec1bb385c4d0c06efea6509fa227eb | |
parent | 722e3c8439c61beb229affcaf7174fe5cee92088 (diff) |
adding OSX setup
Issue #593
-rw-r--r-- | README.md | 14 | ||||
-rw-r--r-- | osx_setup.sh | 7 |
2 files changed, 12 insertions, 9 deletions
@@ -101,13 +101,14 @@ You will need to install python, pip, npm and openssl. Details for OSX and Debia In case of any issues, please ping us on IRC ([#pixelated on irc.freenode.net](irc://irc.freenode.net/pixelated)), we will be available to help you from there. #### On OSX -We provide a script to ease the setup. It will essentially install compass within a rbenv, npm, python from homebrew as well as all the project requirements. Please run the following: - +First, you will need to install the [GPG tools](https://gpgtools.org/) for Mac. +Then, run the following sequence of command: ```bash -curl https://raw.githubusercontent.com/pixelated/pixelated-user-agent/master/osx_setup.sh | sh +$ curl https://raw.githubusercontent.com/pixelated/pixelated-user-agent/master/osx_setup.sh | sh +$ cd pixelated-user-agent && source ~/.virtualenvs/user-agent-venv/bin/activate ``` -Please note that you will have to activate the virtualenv anytime you work on a different terminal. This is done by simply running `$ source ~/.virtualenvs/pixelated-venv/bin/activate` first. +Please note that you will have to activate the virtualenv anytime you work on a different terminal. This is done by simply running `$ source ~/.virtualenvs/user-agent-venv/bin/activate` first. Running the user agent ([How to](#running-the-user-agent)), and the various tests ([How to](#running-tests)) are the same as in the vagrant setup above. @@ -115,10 +116,11 @@ Running the user agent ([How to](#running-the-user-agent)), and the various test This is the setup for developers. Please run the following command: ```bash -curl https://raw.githubusercontent.com/pixelated/pixelated-user-agent/master/debian_setup.sh | sh +$ curl https://raw.githubusercontent.com/pixelated/pixelated-user-agent/master/debian_setup.sh | sh +$ cd pixelated-user-agent && source ~/.virtualenvs/user-agent-venv/bin/activate ``` -Please note that you will have to activate the virtualenv anytime you work on a different terminal. This is done by simply running `$ source ~/.virtualenvs/pixelated-venv/bin/activate` first. +Please note that you will have to activate the virtualenv anytime you work on a different terminal. This is done by simply running `$ source ~/.virtualenvs/user-agent-venv/bin/activate` first. Running the user agent ([How to](#running-the-user-agent)), and the various tests ([How to](#running-tests)) are the same as in the vagrant setup above. diff --git a/osx_setup.sh b/osx_setup.sh index 9f533128..5eaaa936 100644 --- a/osx_setup.sh +++ b/osx_setup.sh @@ -7,6 +7,8 @@ function install_compass { rbenv local 2.2.3 gem install compass export PATH=$PATH:~/.rbenv/versions/2.2.3/bin + echo "export PATH=$PATH:~/.rbenv/versions/2.2.3/bin" >> ~/.bash_profile + echo 'eval "$(rbenv init -)"' >> ~/.bash_profile } function install_rbenv { @@ -38,10 +40,9 @@ brew install python # force brew install even if python is already install export LDFLAGS=-L/usr/local/opt/openssl/lib export LDFLAGS=-L/usr/local/opt/openssl/lib pip install virtualenv -virtualenv ~/.virtualenvs/pixelated-venv -source ~/.virtualenvs/pixelated-venv/bin/activate +virtualenv ~/.virtualenvs/user-agent-venv +source ~/.virtualenvs/user-agent-venv/bin/activate # install clone_repo cd service && ./go setup -source ~/.virtualenvs/pixelated-venv/bin/activate |