Last active
August 29, 2015 14:14
-
-
Save JaSpr/ca7272b127fa3fb2830a to your computer and use it in GitHub Desktop.
Some helpful setup
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
$ vagrant up | |
if it fails on provision regarding puppet: | |
$ vagrant ssh # gets you into the vagrant box | |
$ sudo apt-get install puppet | |
$ exit # leaves ssh | |
$ vagrant provision | |
once vagrant is done | |
$ vagrant ssh | |
$ sudo service elasticsearch start | |
$ exit | |
$ ./activator run |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Dependencies
Oracle VirtualBox https://www.virtualbox.org/wiki/Downloads
Vagrant https://www.vagrantup.com/downloads.html
Ruby 2.1.1
gem install sass compass
Java SDK === version 1.8 (http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html)
Vargrant
$ vagrant up
if it fails on provision regarding puppet:
$ vagrant ssh
$ sudo apt-get install puppet
$ exit
$ vagrant provision
once vagrant is done
$ vagrant ssh
Elasticsearch
$ sudo wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.4.0.deb --no-check-certificate
$ sudo dpkg -i elasticsearch-1.4.0.deb
$ cd /usr/share/elasticsearch
$ sudo bin/plugin --install jdbc --url http://xbib.org/repository/org/xbib/elasticsearch/plugin/elasticsearch-river-jdbc/1.4.0.10/elasticsearch-river-jdbc-1.4.0.10.zip
$ sudo bin/plugin -install mobz/elasticsearch-head
$ cd /usr/share/elasticsearch/plugins
cd jdbc
$ sudo wget https://jdbc.postgresql.org/download/postgresql-9.4-1201.jdbc41.jar
$ cd /etc/elasticsearch
sudo nano elasticsearch.yml
Then add the following to the bottom of the file.
Ctrl X, Y, Enter to save changes
Compile and start local server [host:9000]
cd crossmark-portal
./activator run
Navigate to localhost:9000
Run the database evolution [click run scripts]
in a new folder, pull the redemption-aggregation repo.
./activator run in this new folder
Elasticsearch _river
localhost:9200/_plugin/head
Any Request tab
set url in query textbox to: http://localhost:9200/_river/my_jdbc_river/
next text box to: _meta
and PUT in the dropdown
copy contents of [YOUR_PROJECT]/puppet/templates/offerindex.json in to big textarea
click request
git protocol
when in develop or master: git pull --rebase upstream develop
hotfixes branch off current master -b hotfix/name
when done: git push origin hotfix/name [my origin]
then do merge request from [name]/crossmark master to origin master