I am new to deploying angular application on Linux, I used to do it on IIS which was pretty simple. I have a Linux server which I access through Putty. I want to deploy my angular 5 application on this server. I have performed following steps till now
- Run ng build --prod
- Copy the files in dist folder on one of the folder on linux server through pscp
Now, when I am trying to access the folder like http://hostname/folderPath/index.html, nothing comes up. I know I am missing some steps, could anyone please help me in deploying the application.
Just remove the base tag from index.html that's it
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Angular App</title>
<base href="/">
Some more code
Don't do anything to this
After Removing Your code will like this
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Angular App</title>
Some more code
Don't do anything to this
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With