Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

getting Error: Deploy target home-rw not configured when deploying multiple sites to firebase

Dewey Nguyen
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 23, 2019

I am trying to use bitbucket pipeline to deploy to firebase. I have multiple sites for one project. The content of firebase.json as in below: 

{ "hosting": [ { "target": "home-rw", "public": "built/www", "cleanUrls": true, "headers": [ { "source": "/", "headers": [ { "key": "Cache-Control", "value": "no-cache" } ] }, { "source": "/**", "headers": [ { "key": "Cache-Control", "value": "public, max-age=31536000" }, { "key": "Access-Control-Allow-Origin", "value": "*" } ] } ], "ignore": [ "firebase.json", "**/.*", "**/node_modules/**" ] }, { "target": "web-rw", "public": "built/web", "headers": [ { "source": "[0-9.]*/**", "headers": [ { "key": "Cache-Control", "value": "public, max-age=31536000" }, { "key": "Access-Control-Allow-Origin", "value": "*" } ] }, { "source": "index.html", "headers": [ { "key": "Cache-Control", "value": "max-age=300" } ] } ], "ignore": [ "firebase.json", "**/.*", "**/node_modules/**" ], "cleanUrls": true, "trailingSlash": false } ]}

When executed with the command below in bitbucket-pipelines.yaml, I got this error: 

Status: Downloaded newer image for bitbucketpipelines/firebase-deploy:0.2.1
INFO: Executing the pipe...
INFO: Starting deployment of the project to Firebase.
Error: Deploy target home-rw not configured for project web-development-rw-f526f. Configure with:

firebase target:apply hosting home-rw <resources...>

Does anyone know how to deploy multiple sites?

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events