mirror of
https://github.com/alanorth/cgspace-notes.git
synced 2025-01-27 05:49:12 +01:00
Update notes for 2016-02-07
Signed-off-by: Alan Orth <alan.orth@gmail.com>
This commit is contained in:
@ -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
|
||||
```
|
||||
|
Reference in New Issue
Block a user