File tree 3 files changed +19
-0
lines changed
3 files changed +19
-0
lines changed Original file line number Diff line number Diff line change
1
+ https://github.com/Scalingo/nodejs-buildpack
2
+ https://github.com/Scalingo/nginx-buildpack
Original file line number Diff line number Diff line change
1
+ # exactly match the / URI
2
+ location = / {
3
+ root /app/dist/;
4
+ }
5
+
6
+ # all the other URIs
7
+ location / {
8
+ root /app/dist/;
9
+ # try_files try to load the file of the URI, and if it fails, it serve the / URI
10
+ # => in our case, if the uri is not found, it means that's an Ember URL and just return the index
11
+ # => BECAUSE / is not a file, this would make a infinite redirection loop. So we need the first block without try_files
12
+ try_files $uri /;
13
+ }
Original file line number Diff line number Diff line change 33
33
"url" : " git+https://github.com/1024pix/pix.git"
34
34
},
35
35
"scripts" : {
36
+ "build" : " run-p build:mon-pix build:orga build:certif" ,
37
+ "build:mon-pix" : " (cd mon-pix && npm run build) && mkdir -p dist && cp -R mon-pix/dist dist/app" ,
38
+ "build:orga" : " (cd orga && npm run build) && mkdir -p dist && cp -R orga/dist dist/orga" ,
39
+ "build:certif" : " (cd certif && npm run build) && mkdir -p dist && cp -R certif/dist dist/certif" ,
36
40
"ci:signal-jira" : " node ./scripts/jira/comment-with-review-app-url.js" ,
37
41
"clean" : " node_modules/.bin/run-p clean:api clean:mon-pix clean:orga clean:certif clean:coverage && npm run clean:root" ,
38
42
"clean:api" : " cd api && npm run clean" ,
You can’t perform that action at this time.
0 commit comments