8b4d85c015
- code.angularjs.org and docs.angularjs.org are two separate Firebase projects - both are automatically deployed via Travis config - Travis is split up into 2 build stages: first, all tests are run, and if they pass, the deploy stage runs a single job with both deployments (actual deployment depends on the state of the commit) - docs. is deployed directly to Firebase hosting - code. is uploaded to Firebase Google Cloud Storage and uses Firebase hosting rewrites to acces the files - jenkins builds still push the code builds to the code.angularjs.org Github repository Closes #9674 Closes #16093
24 lines
520 B
JSON
24 lines
520 B
JSON
{
|
|
"hosting": {
|
|
"public": "build/docs",
|
|
"ignore": [
|
|
"/index.html",
|
|
"/index-debug.html",
|
|
"/index-jquery.html"
|
|
],
|
|
"rewrites": [
|
|
{
|
|
"source": "/",
|
|
"destination": "/index-production.html"
|
|
},
|
|
{
|
|
"source": "/index.html",
|
|
"destination": "/index-production.html"
|
|
},
|
|
{
|
|
"source": "**/*!(.jpg|.jpeg|.gif|.png|.html|.js|.json|.css|.svg|.ttf|.woff|.woff2|.eot)",
|
|
"destination": "/index-production.html"
|
|
}
|
|
]
|
|
}
|
|
} |