mirror of
https://github.com/alanorth/cgspace-notes.git
synced 2025-01-27 05:49:12 +01:00
Add notes for 2017-04-18
This commit is contained in:
@ -216,3 +216,25 @@ sys 1m29.310s
|
||||
Error: ERROR: update or delete on table "bitstream" violates foreign key constraint "bundle_primary_bitstream_id_fkey" on table "bundle"
|
||||
Detail: Key (bitstream_id)=(435) is still referenced from table "bundle".
|
||||
```
|
||||
|
||||
## 2017-04-18
|
||||
|
||||
- Helping Tsega test his new [CGSpace REST API Rails app](https://github.com/ilri/ckm-cgspace-rest-api) on DSpace Test
|
||||
- Setup and run with:
|
||||
|
||||
```
|
||||
$ git clone https://github.com/ilri/ckm-cgspace-rest-api.git
|
||||
$ cd ckm-cgspace-rest-api/app
|
||||
$ gem install bundler
|
||||
$ bundle
|
||||
$ cd ..
|
||||
$ rails -s
|
||||
```
|
||||
|
||||
- I used Ansible to create a PostgreSQL user that only has `SELECT` privileges on the tables it needs:
|
||||
|
||||
```
|
||||
$ ansible linode02 -u aorth -b --become-user=postgres -K -m postgresql_user -a 'db=database name=username password=password priv=CONNECT/item:SELECT/metadatavalue:SELECT/metadatafieldregistry:SELECT/metadataschemaregistry:SELECT/collection:SELECT/handle:SELECT/bundle2bitstream:SELECT/bitstream:SELECT/bundle:SELECT/item2bundle:SELECT state=present
|
||||
```
|
||||
|
||||
- Need to look into [running this via systemd](https://github.com/puma/puma/blob/master/docs/systemd.md)
|
||||
|
Reference in New Issue
Block a user