0% found this document useful (0 votes)
126 views4 pages

Dspace7 04

Uploaded by

demtec.soptec
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
126 views4 pages

Dspace7 04

Uploaded by

demtec.soptec
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

===========

Download Dspace 7 version current dspace-7.5 and unzip, copy source paste into root C:\
- Configuration (local.cfg):
Into C:\DSpace-dspace-7.5\dspace\config find and copy file local.cfg.EXAMPLE and rename to
local.cfg
Open file local.cfg and rename follow:
Create folder with name dspace into root C:\
Edit:
dspace.dir=C:/dspace
# Name of the site
dspace.name = DSpace Demo by Shusivn
un-comment row:
solr.server = http://localhost:8983/solr

# Database username and password


db.username = dspace
db.password = dspace
Save and close
- Build Dspace 7.5
now check services solr, tomcat9 start?
open command promt
OK.
cd C:\DSpace-dspace-7.5
mvn package
Watting Dspace building....
Finish.
cd C:\DSpace-dspace-7.5\dspace\target\dspace-installer
ant fresh_install
OK.
cd /
cd C:\dspace\bin\
dspace database migrate
- Copy folder server from C:\dspace\webapps
to paste C:\Program Files\Apache Software Foundation\Tomcat 9.0\webapps
- Copy all folder from C:\dspace\solr to paste C:\solr-8.11.2\server\solr\configsets
- Restart solr
solr restart -p 8983
- Restart Tomcat9
-Create dspace administrator acount
cd C:\dspace/bin/dspace create-administrator
Enter email:[email protected]
Pass:
Re pawd:
yes
-Connection server:
Open Browse http://localhost:8080/server
restart tomcat9 service.
OK, Now.
**** Install Dspace-dspace-angular
Installing the Frontend (User Interface)
Open command promt
npm -v
node --version
* Install Yarn
npm install --global yarn
* Install pm2
npm install --global pm2
* Download Dspace user interface
https://github.com/DSpace/dspace-angular/archive/refs/tags/dspace-7.5.zip
unzip dspace-7.5.zip
Copy folder unziped and paste C:\dspace-angular-dspace-7.5
cd C:\dspace-angular-dspace-7.5
yarn install
waitting build yarn...
OK finish.
* Build/Compile
yarn build:prod
waiting building...
OK. Finish
* Configuration
Create a file "config.prod.yml" in C:\dspace-angular-dspace-7.5\config.
Copy file config.example.yml after rename to config.prod.yml
Open file config.prod.yml and edit:
rest:
ssl: true
host: api.mydspace.edu
port: 443
nameSpace: /server
---> thành
rest:
ssl: false
host: loacalhost
port: 8080
nameSpace: /server
Save and close
- Check connection:
yarn test:rest
OK
* Start up the User Interface
NOTE #4: If you are using Windows, there are two other rules to keep in mind in this JSON
configuration. First, all paths must include double backslashes (e.g. "C:\\dspace-ui-deploy").
Second, "cluster" mode is required. Here's an example configuration for Windows:
- Create file dspace-angular.json in folder C:\dspace-angular-dspace-7.5
- Open file dspace-angular.json and add code:
{
"apps": [
{
"name": "dspace-angular",
"cwd": "C:\\dspace-angular-dspace-7.5",
"script": "dist\\server\\main.js",
"instances": "max",
"exec_mode": "cluster",
"env": {
"NODE_ENV": "production"
}
}
]
}

-Save and close


-Now, start the application using PM2 using the configuration file you created in the previous step
pm2 start dspace-angular.json
-Now, open browse check...
http://localhost:4000
Yeah!
Thank for watching

You might also like