Setup - Cloud Machine
Often, we will supply a cloud box for quick setup and development. This is a cloud9 browser-based IDE plus a full docker setup.. so it's very simlar to a local development environment and often much faster than your local (64GB RAM on SSD with 8 cores). Setup mostly follows the setup for a local version.
Be prepared to supply answers to questions, so a config can be created for you.
- Open your browser and navigate to the supplied url. When requested, enter the supplied username and password. 
- On the Welcome page, click the settings and configure it how you like it (I like sublime mode, light, and go to user preferences and change the font size). 
- Click the green button, and open a terminal. Check that your token is present by typing: - env | grep DEVELOPER_TOKEN. If it's not, type- export DEVELOPER_TOKEN=and insert your developer token.
- You will be in the - /workspacefolder, which is shared. Make a directory with your initials (mine are wf), and then change into that folder.
- Type - oauth_clone omalab/audientiwhich will clone the development environment. Change into this directory.
- Type: - bito bundle install. Then, type- ./cli.rb configto answer your configuration questions. This will setup the rest of the configuration for you, and update the config_variables. Close this terminal and open another one. Then, type- audiand make sure it changes to your personal audienti folder.
- Type: - ./cli.rb clone_reposto clone the repos.
- Type: - ./cli.rb clone_configto clone the environment files.
- Type: - service docker startto start the docker daemon. (This hopefully will go away soon).
- Type: - dctr backend bashto ensure your system can build a docker image and create the environment.
- When you are in, then type ruby ./create_database.rb and create oma_test. Do the same thing to create oma_dev. 
- Type bundle exec rake db:schema:load to load the schema. 
- Import development data if you need that.. then you're done, up and running. 
Last updated
