(Work in Progress)
refer to Geostreams-api-v3 - Local
git clone repositoryUrl
)Clone a database from one of the DEV machines:
# from https://gist.github.com/brock/63830f11c0945f82f9ea curl -o pg_extract.sh https://gist.githubusercontent.com/brock/63830f11c0945f82f9ea/raw/ff164b14311de62ee475d1612f1e80e4df6edc15/pg_extract.sh chmod 755 pg_extract.sh # get the database and unzip scp isda:/home/shared/clowder/seagrant-dev/postgresql/dumpall.sql.gz seagrant-dev.sql.gz gunzip seagrant-dev.sql.gz # split the database (may take a while) ./pg_extract.sh seagrant-dev.sql # should see names of databases: # Evaluating geostream... # create and load database ## In the line below, 'clowder' can be updated for your username on your machine ## 'geostream' will be the name of the database. ## It can be the name that you prefer, just use the same name throughout these instructions ## Note: This may not work as expected if you name with a "dash" ## - you may have to manually copy the contents of 'geostream' to your chosen database name createdb geostream -O clowder psql -d geostream < seagrant-dev.sql |
conf/application.conf
conf/reference.conf
to conf/application.conf
ensure proper functionality play.filters.host
in conf/application.conf
to contain the proper allowed host for Geodashboardgeostreams
you use something like seagrant-dev
)db.default.url="jdbc:postgresql://localhost/seagrant-dev"
In a terminal, cd
to the geo-temporal-api-v2
repository and execute sbt run
to start Clowder
If you use Geodashboard, you may need to update links in the Geodashboard code
sudo rm -rf geo-temporal-api-v2/*
sudo cp -r ~/geostreams-3.0.0-alpha.1/* geo-temporal-api-v2/.
sudo cp ~/application.conf geo-temporal-api-v2/conf/.
sudo cp ~/messages.en geo-temporal-api-v2/conf/.
sudo chown clowder: geo-temporal-api-v2/bin/
sudo chown clowder: geo-temporal-api-v2/lib/
sudo chown clowder: geo-temporal-api-v2/conf/
sudo chmod +r+w geo-temporal-api-v2/lib/*
sudo chmod +r+w geo-temporal-api-v2/conf/*
sudo chmod +r+x geo-temporal-api-v2/bin/geostreams
sudo systemctl restart geostreams.service
sudo journalctl -xe
sudo lsof -i -P -n | grep LISTEN