Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
325 views
in Technique[技术] by (71.8m points)

angularjs - How to connect my Angular Website to the Network Solutions Domain?

I am trying to collect my Angular Website to the Network Solutions domain but I can only do the localhost:4200. I want to change that to the domain I bought from Network Solutions, how can I do that? Thanks for any responses.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Hosting angular project doesn't differ a lot on hosting a javascript file inside a simple html/vanilla js project, of course you need first to get that bundle.js of your Angular project and to do so, build your project first with:

ng build --prod

Check the official docs here for more details.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share
...