Is it possible to specify a specific target (site) within a firebase project . Since firebase hosting supports multi site deployment.
I have a firebase project say (example-app) which has two sites within firebase hosting say
site 1: dev.example-app.com
site 2: prod.example.com )
How to specify i want to deploy to site 1 or site 2 in travis config …?
Travis supports if the two sites are from different project . My question is “Is it possible for same project with multi site setup”
reference : https://firebase.google.com/docs/hosting/multisites
I saw this one @BanzaiMan . I knew how to do setup multiple project . My question was how to do for a single firebase project which has multi site setup . Firebase hosting supports to deploy multiple site in same project .
In Travis , we have “project” key to do at project level like below
deploy:
provider: firebase
token:
secure: "YOUR ENCRYPTED token"
project: "myapp-example"
I liked to specify target too , like if i have two targets (sites) within same project “myapp-example”
site 1: dev.myapp-example.com
site 2: prod.myapp-example.com – this is default
we need something like
deploy:
provider: firebase
token:
secure: "YOUR ENCRYPTED token"
project: "myapp-example"
target: "dev.myapp-example.com"
Firebase reference :
https://firebase.google.com/docs/hosting/multisites
Use case references :
Oh, I see. You need to pass the --only
flag. This is not possible at the moment. Your PR is welcome.
module DPL
class Provider
class Firebase < Provider
npm_g 'firebase-tools@^6.3', 'firebase'
def check_auth
raise Error, "must supply token option or FIREBASE_TOKEN environment variable" if !options[:token] && !context.env['FIREBASE_TOKEN']
end
def check_app
error "missing firebase.json" unless File.exist? "firebase.json"
end
def needs_key?
false
end
def push_app
command = "firebase deploy --non-interactive"
command << " --project #{options[:project]}" if options[:project]
This file has been truncated. show original