- tags: - - - notes - - - -
diff --git a/content/2016-02.md b/content/2016-02.md index b32f9c409..93c19cdab 100644 --- a/content/2016-02.md +++ b/content/2016-02.md @@ -59,12 +59,22 @@ DELETE 25 - For some reason when you import an Excel file into OpenRefine it exports dates like 1949 to 1949.0 in the CSV - I re-import the resulting CSV and run a GREL on the date issued column: `value.replace("\.0", "")` - I need to start running DSpace in Mac OS X instead of a Linux VM -- Install PostgreSQL from homebrew and configure: +- Install PostgreSQL from homebrew, then configure and import CGSpace database dump: ``` $ postgres -D /opt/brew/var/postgres +$ createuser --superuser postgres $ createuser --pwprompt dspacetest $ createdb -O dspacetest --encoding=UNICODE dspacetest +$ psql postgres +postgres=# alter user dspacetest createuser; +postgres=# \q +$ pg_restore -O -U dspacetest -d dspacetest ~/Downloads/cgspace_2016-02-07.backup +$ psql postgres +postgres=# alter user dspacetest nocreateuser; +postgres=# \q +$ vacuumdb dspacetest +$ psql -U dspacetest -f ~/src/git/DSpace/dspace/etc/postgres/update-sequences.sql dspacetest -h localhost ``` - After building and running a `fresh_install` I symlinked the webapps into Tomcat's webapps folder: @@ -85,3 +95,9 @@ $ /opt/brew/Cellar/tomcat/8.0.30/bin/catalina start ``` CATALINA_OPTS="-Djava.awt.headless=true -Xms2048m -Xmx2048m -XX:MaxPermSize=256m -XX:+UseConcMarkSweepGC -Dfile.encoding=UTF-8" ``` + +- After verifying that the site is working, start a full index: + +``` +$ ~/dspace/bin/dspace index-discovery -b +``` diff --git a/public/2015-11/index.html b/public/2015-11/index.html index 55fe687f8..5f661fbd3 100644 --- a/public/2015-11/index.html +++ b/public/2015-11/index.html @@ -1,50 +1,82 @@ -
- - - - - - - - - -value.replace("\.0", "")
$ postgres -D /opt/brew/var/postgres
+$ createuser --superuser postgres
$ createuser --pwprompt dspacetest
$ createdb -O dspacetest --encoding=UNICODE dspacetest
+$ psql postgres
+postgres=# alter user dspacetest createuser;
+postgres=# \q
+$ pg_restore -O -U dspacetest -d dspacetest ~/Downloads/cgspace_2016-02-07.backup
+$ psql postgres
+postgres=# alter user dspacetest nocreateuser;
+postgres=# \q
+$ vacuumdb dspacetest
+$ psql -U dspacetest -f ~/src/git/DSpace/dspace/etc/postgres/update-sequences.sql dspacetest -h localhost
CATALINA_OPTS="-Djava.awt.headless=true -Xms2048m -Xmx2048m -XX:MaxPermSize=256m -XX:+UseConcMarkSweepGC -Dfile.encoding=UTF-8"
+
+
+$ ~/dspace/bin/dspace index-discovery -b
layouts/partials/hero.html
" to replace this text.
+
+
+
+
+
+
+