Hi Evgeni,

At this time, our Production mode build process is not fully worked out for
the Angular UI.  One of the main reasons is that we do not *yet* support
the Angular CLI (which provides tools like the "ng build --base-href"
concept you are looking for).

However, in the next few weeks, we will be upgrading the Angular UI to
Angular v6 and Angular CLI....so, that will be coming soon.

In the meantime, if you want to try out / test out the early DSpace 7 code,
we recommend running the Angular UI in development mode, e.g.

yarn start
(or yarn run watch)

Then, you should be able to access the UI at http://localhost:3000/

For more info, see the README at:
https://github.com/DSpace/dspace-angular#quick-start

As for running the REST API, it's build process is the same as the DSpace 6
build process.  It sounds like you already figured that out though... mvn
package , ant fresh_install (or update), and then deploy to Tomcat.

Additional info on getting started with DSpace 7 is in the early training
resources at
https://wiki.duraspace.org/display/DSPACE/DSpace+7+Working+Group#DSpace7WorkingGroup-TrainingResources
 We also have some early installation notes (constantly being updated) at
https://wiki.duraspace.org/display/DSPACE/DSpace+7+-+Angular+UI+Development#DSpace7-AngularUIDevelopment-Howtoinstalllocally


Let us know on this list if you are still hitting issues

Tim


On Tue, Oct 30, 2018 at 5:10 AM Evgeni Dimitrov <[email protected]>
wrote:

> I mean - somewhere - for yarn or webpack - it should be possible to set
> something similar to
> ng build --base-href=/dist
> or
> ng build --base-href=/angui
>
>
> On Monday, October 29, 2018 at 9:36:50 PM UTC+2, Evgeni Dimitrov wrote:
>>
>> I want to start it in Tomcat.
>> 1. I downloaded DSpace-master.zip and dspace-angular-master.zip from
>> github
>> 2. I built the dspace part as usual - maven, ant and deployed to
>> Tomcat/webapps
>> 3. For the angular part I did:
>>
>> yarn run global
>> yarn install
>> yarn run build:prod
>>
>> Before that I changed (perhaps wrongly) in environment.dev.js and
>> environment.prod.js
>>
>>   // Angular Universal server settings.
>>   ui: {
>>     ssl: false,
>>     host: 'localhost',
>>     port: 8080,
>>     // NOTE: Space is capitalized because 'namespace' is a reserved
>> string in TypeScript
>>     nameSpace: '/dist'
>>   },
>>   // The REST API server settings.
>>   rest: {
>>     ssl: true,
>>     host: 'localhost',
>>     port: 8080,
>>     // NOTE: Space is capitalized because 'namespace' is a reserved
>> string in TypeScript
>>     nameSpace: '/spring-rest'
>>   },
>>
>> 4. I started Tomcat and tried http://localhost:8080/dist
>> The message was that a file is not found at localhost:8080/<somefile>
>>
>> Any suggestions what should be done differently?
>>
>>
>>
>>
>> <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=icon>
>>  Virus-free.
>> www.avast.com
>> <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=link>
>> <#m_-6379266036871596271_m_-7636643062708121379_CAJc2bOyvbN0rjPUa1UBiw68YUY_+JbA92UWq741Og5JvbLQQKA@mail.gmail.com_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
>>
> --
> All messages to this mailing list should adhere to the DuraSpace Code of
> Conduct: https://duraspace.org/about/policies/code-of-conduct/
> ---
> You received this message because you are subscribed to the Google Groups
> "DSpace Technical Support" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/dspace-tech.
> For more options, visit https://groups.google.com/d/optout.
>
-- 
Tim Donohue
Technical Lead for DSpace & DSpaceDirect
DuraSpace.org | DSpace.org | DSpaceDirect.org

-- 
All messages to this mailing list should adhere to the DuraSpace Code of 
Conduct: https://duraspace.org/about/policies/code-of-conduct/
--- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.

Reply via email to