It's quite easy and the same process applies to all Firebase features with minor changes.
In order to deploy you'll need a deployment token (I named it FIREBASE_TOKEN) and it can be
acquired by using the following command
firebase login:ci
| // More at: https://github.com/SheetJS/js-xlsx/blob/master/demos/server/express.js | |
| import XLSX from 'xlsx'; | |
| // create a new workbook | |
| const workbook = XLSX.utils.book_new(); | |
| // create a new worksheet | |
| const worksheet = XSLX.utils.json_to_sheet([{ a: 1, b: false }]); |
| MIT License | |
| Copyright (c) 2018 Adilson Luiz Carvalho | |
| Permission is hereby granted, free of charge, to any person obtaining a copy | |
| of this software and associated documentation files (the "Software"), to deal | |
| in the Software without restriction, including without limitation the rights | |
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| copies of the Software, and to permit persons to whom the Software is | |
| furnished to do so, subject to the following conditions: |
| #!/bin/bash | |
| npm install -g \ | |
| eslint \ | |
| eslint-config-airbnb eslint-config-airbnb-base \ | |
| eslint-plugin-import eslint-plugin-jsx-a11y eslint-plugin-react \ | |
| babel-eslint |
It's quite easy and the same process applies to all Firebase features with minor changes.
In order to deploy you'll need a deployment token (I named it FIREBASE_TOKEN) and it can be
acquired by using the following command
firebase login:ci
I hereby claim:
To claim this, I am signing this object:
| upstream target_service { | |
| server [TARGET SERVICE NAME/IP AND PORT]; | |
| } | |
| server { | |
| # ... other stuff ... | |
| location /.well-known/acme-challenge { | |
| proxy_set_header Host $host; | |
| proxy_set_header X-Real-IP $remote_addr; | |
| proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; |
| version: '3' | |
| services: | |
| app: | |
| image: ruby:2.2.7 | |
| volumes: | |
| - .:/app | |
| ports: | |
| - "3000:3000" | |
| depends_on: |
| options: | |
| docker: true | |
| pipelines: | |
| branches: | |
| master: | |
| - step: | |
| image: google/cloud-sdk:latest | |
| name: Deploy to production | |
| deployment: production | |
| caches: |
| # ---- Base Node ---- | |
| FROM ubuntu AS base | |
| # install the core dependencies | |
| RUN apt-get install -y my package list | |
| # set working directory | |
| WORKDIR /app | |
| # copy project file | |
| COPY Gemfile . | |
| COPY Gemfile.lock |
| { | |
| "extends": "airbnb-base" | |
| } |