To generate new build:
ng build --base_href=/v2/ --prod
Then copy files from dist/Gotham-Spinach
to /v2
under this repo.
Example
ng build --base_href=/experiment/yhvictor --prod
Then put everything under from dist/Gotham-Spinach
to /experiment/yhvictor
.
There’s a bash script called generate.sh
that can help you doing so.
Just copy default.generate.config.sh
to generate.config.sh
and modify value.
Then run ./generate.sh
.
...
location /v2/ {
proxy_pass https://singerofdarknight.github.io;
}
location /experiment/ {
proxy_pass https://singerofdarknight.github.io;
}
....