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
22 lines
348 B
JSON
22 lines
348 B
JSON
{
|
|
"hosting": {
|
|
"public": "public",
|
|
"redirects": [
|
|
{
|
|
"source": "/:version/docs",
|
|
"destination": "/:version/docs/index.html",
|
|
"type": 301
|
|
}
|
|
],
|
|
"rewrites": [
|
|
{
|
|
"source": "/**",
|
|
"function": "sendStoredFile"
|
|
}
|
|
]
|
|
},
|
|
"storage": {
|
|
"rules": "storage.rules"
|
|
}
|
|
}
|