2017-07-13 11:14:55 +02:00
|
|
|
Firebase for docs.angularjs.org
|
|
|
|
|
===============================
|
|
|
|
|
|
2018-02-12 10:49:19 +01:00
|
|
|
# Continuous integration
|
|
|
|
|
|
2020-05-21 09:13:46 +01:00
|
|
|
The docs are deployed to Google Firebase hosting via a CI deployment config, which expects
|
|
|
|
|
firebase.json to be in the repository root, which is done by a Grunt task
|
|
|
|
|
(`firebaseDocsJsonForCI` which is included in `prepareDeploy`).
|
|
|
|
|
The `firebaseDocsJsonForCI` task modifies the paths in the `firebase.json` and copies it to the
|
|
|
|
|
repository root.
|
2018-02-12 10:49:19 +01:00
|
|
|
|
2020-05-21 09:13:46 +01:00
|
|
|
See .circleci/config.yml for the complete deployment config and build steps.
|
2018-02-12 10:49:19 +01:00
|
|
|
|
|
|
|
|
# Serving locally:
|
|
|
|
|
|
|
|
|
|
- Run `grunt:prepareDeploy`.
|
|
|
|
|
This copies docs content files into deploy/docs and the partials for Search Engine AJAX
|
|
|
|
|
Crawling into ./functions/content.
|
2017-07-13 11:14:55 +02:00
|
|
|
|
2018-02-12 10:49:19 +01:00
|
|
|
- Run `firebase serve --only functions,hosting`
|
|
|
|
|
Creates a server at localhost:5000 that serves from deploy/docs and uses the local function
|
2017-07-13 11:14:55 +02:00
|
|
|
|
|
|
|
|
See /scripts/code.angularjs.org-firebase/readme.firebase.code.md for the firebase deployment to
|
2018-02-13 01:25:34 +02:00
|
|
|
code.angularjs.org
|