Thanks Tim. I originally did just edit the environment.common.ts file to 
make it work, but the OCD in me was not happy with a workaround, LOL.

I originally installed everything for the UI via FreeBSD packages:
   npm-node14-6.14.8
   yarn-node14-1.22.11

But taking a cue from my REST API install issues, I decided to just 
keep npm-node14-6.14.8, delete yarn-node14-1.22.11 and install yarn via 
npm. I don't know why that worked, but it now sees my environment.prod.ts 
file. 

Now I have a different issue where the UI is running, but no CSS is being 
applied. I have some MIME type errors in my browser console, so I have that 
as clues to how to resolve. If I get stuck again, I'll create a separate 
post for that.

 - Gavin 

On Monday, September 27, 2021 at 10:01:12 AM UTC-7 Tim Donohue wrote:

> Hi Gavin,
>
> Could you double check the version of Yarn you are using?  We only support 
> Yarn v1 at this time.  Also, double check the version of Node (should be 
> v12 or v14)
>
> Beyond that, you should just need the file in 
> /src/environments/environment.prod.ts for it to be recognized. 
>
> You also are welcome to modify the "environment.common.ts" file directly, 
> to test configurations are working.  We just recommend separating out your 
> modified configs into "environment.prod.ts" in order to keep your 
> production configs separated from development/test configs.
>
> Tim
> ------------------------------
> *From:* [email protected] <[email protected]> on behalf 
> of Gavin Spomer <[email protected]>
> *Sent:* Friday, September 24, 2021 4:53 PM
> *To:* DSpace Technical Support <[email protected]>
> *Subject:* [dspace-tech] dspace-angular-error.log Indicates It's Looking 
> For My REST API At The Demo Site 
>  
> In my environment.prod.ts file I have: 
>
> [image: 2021-09-24_13-57-09.png]
>
> But my dspace-angular-error.log shows:
>
>    No _links section found at https://api7.dspace.org/server/api 
>
> Figuring that https://api7.dspace.org/server/api was likely a default I 
> looked in environment.common.ts and of course I found it set in there. Then 
> curious as to why it didn't use the value of 'localhost' from my 
> environment.prod.ts I decided to run yarn again and noticed the error:
>
>    No specific environment file found for --prod 
>
> Why doesn't it find it? My file is in the src/environments/ directory and 
> has the same permissions. 
>
>  - Gavin 
>
> -- 
> All messages to this mailing list should adhere to the Code of Conduct: 
> https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
> --- 
> 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 view this discussion on the web visit 
> https://groups.google.com/d/msgid/dspace-tech/3f79f48b-2aa7-48e8-bbbb-eae9b5593a4an%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/dspace-tech/3f79f48b-2aa7-48e8-bbbb-eae9b5593a4an%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
All messages to this mailing list should adhere to the Code of Conduct: 
https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
--- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/dspace-tech/fb642282-2a42-4e79-8ca3-413a71054483n%40googlegroups.com.

Reply via email to