0
We have a VM on Azure.
I managed the homologation build and put it on the server.
Generated the files and index.html like this
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>DESIF</title>
<base href="/">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="favicon.ico">
</head>
<body>
<app-root>Carregando ...</app-root>
<script type="text/javascript" src="inline.bundle.js"></script><script type="text/javascript" src="polyfills.bundle.js"></script><script type="text/javascript" src="styles.bundle.js"></script><script type="text/javascript" src="vendor.bundle.js"></script><script type="text/javascript" src="main.bundle.js"></script></body>
</html>
On the Tomcat server. in the folder Program Files Apache Software Foundation Tomcat 8.5 webapps, created the folder dist.
When entering the address: http://address:8080/dist, it goes the correct page, when loading changes the address to http://address:8080/#/login, which is correct, but I figured it would be: http://address:8080/dist/#/login
Squeeze F5 or CTRL + F5, it goes to initial of TOMCAT.
I have to set something up ?
In Angular, I have a file that has the Server address, in case it is **http://localhost:8080/system*, so you don’t have to keep changing every time you go up for approval, you have to make it automatic, for some variable ?
First time I make a deploy.
Is there any better way ?