Angular application deployment issue.

16 views
Skip to first unread message

SHIBSANKAR ROYCHOWDHURY

unread,
May 20, 2019, 2:01:35 AM5/20/19
to Angular and AngularJS discussion
I am facing deployment issue with my Angular 7 application in nginx server.

I have build  my angular 7 application  "myproject".

then content of "dist"  folder  has  been moved to /usr/share/nginx/html/myproject  folder.

I  dont have sites-available & site-enabled folder  in my default nginx installation......... I am doing  all configuration  in "nginx.conf"  only.


Currently I have this settings in "nginx.conf" 
.....................
server {
        listen      
80;
        server_name  
<serverip>;
        root        
/usr/share/nginx/html;


       
# Load configuration files for the default server block.
        include
/etc/nginx/default.d/*.conf;


        location / {
        }

.........................

I did restart to nginx server .  But still I can not open http :// <serverip>/myproject  in browser

what fix I need to do to open the application in browser ?

Sander Elias

unread,
May 20, 2019, 2:22:58 AM5/20/19
to Angular and AngularJS discussion
Hi SHIBSANKAR,

Did you check if the files you need are in the root of the dist folder? Depending on your project setup, it might be in a subfolder.

Regards
Sander
Reply all
Reply to author
Forward
0 new messages