angularjs - using nginx to serve angular-seed basic project -


i've cloned angular-seed project, ran npm install , npm start, , worked fine.

then wanted use different web server, not dev 1 comes npm, production one, see if can configure angular seed basic state (view1, view2) work nginx.
i've had nginx.conf file different project know working on, , took , tried make work. serves index.html fine, when try switch view2 or view1 (from partial views) - nothing. navigates right address (i see updates address #/view1 ) content stays same. conf file:

server {     listen  80;     listen [::]:80 ipv6only=on default_server;     server_name localhost;     charset     utf-8;      # max upload size     client_max_body_size 75m;      # frontend root folder     root /myapp/app;      location / {     try_files $uri $uri/ /index.html?/$request_uri;      } } 

the structure of angular-seed can found here: https://github.com/angular/angular-seed

i know basic, i've tried different conf files , nonthing works. know order of files in location block ok, , know supposed serve - still nothing.
appreciated. thanks.


Comments

Popular posts from this blog

java - Static nested class instance -

c# - Bluetooth LE CanUpdate Characteristic property -

JavaScript - Replace variable from string in all occurrences -