[Angular] Setup automated deployment with Angular, Travis and Firebase
2017-08-03 15:50
417 查看
Automate all the things!! Automation is crucial for increasing the quality and productivity. In this lesson we will learn how to automate the deployment of our Angular app to Firebase Hosting, by using GitHub and Travis. By the end of the lesson we will be able to automatically deploy our app with a simple
travis.yml:
Generate Firebase token:
git pushto our repository's
masterbranch.
travis.yml:
#.travis.yml language: node_js node_js: - "8.1.2" branches: only: - master ## deploy only be triggered when changes are pushed to the master before_script: - npm install -g firebase-tools ## here we install any dependencies we need but not in package.json script: - npm run build.prod ## here we do production build after_success: - firebase deploy --token $FIREBASE_TOKEN --non-interactive ## when success, we delpoy to firebase, $FIREBASE_TOKEN is provided in Travis settings, --non-interactive tell firebase deploy in automatic mode notifications: email: on_failure: change ## when failure send email to notifity user on_success: change ## when success send email to notifity user
Generate Firebase token:
firebase login:ci
相关文章推荐
- Developing iPhone Apps with iOS4 SDK, Deploying to 3.x Devices : Base SDK and iPhone OS Deployment T
- [Angular 2] Get start with Firebase
- [React Native + Firebase] React Native: Real time database with Firebase -- setup & CRUD
- [Firebase] 1. AngularFire, $save, $add and $remove, Forge
- [AngularFire] Angular File Uploads to Firebase Storage with Angular control value accessor
- [官方摘要]Setup And Configuration memcached with Tomcat
- [Angular] Get started with data binding and SPA
- 第 15 & 16 章 Jenkins –Automated Deployment&Metrics and Trends
- How to setup a GIT server with gitosis and gitweb
- How to Setup Apache With FastCGI And Ruby Bindings
- SSO with OAuth2: Angular JS and Spring Security Part V
- File transfer in android with asmack and Openfire
- Automated Deployment for Websites and Web Services
- How to Create a High Availability Setup with Pacemaker, Corosync and Floating IPs on CentOS 7
- AngularJS CRUD Example with PHP, MySQL and Material Design
- [Angular 2] Controlling Rx Subscriptions with Async Pipe and BehaviorSubjects
- Developing iPhone Apps with iOS4 SDK, Deploying to 3.x Devices : Base SDK and iPhone OS Deployment T
- Getting Started with AngularJS 1.5 and ES6: part 6
- [转]Using MVC 6 And AngularJS 2 With .NET Core