Skip to content

Commit

Permalink
Change publisher to deploy only hosting files and not functions (tast…
Browse files Browse the repository at this point in the history
…ejs#169)

* api deploy config

* Change the publisher to deploy only to Hosting and not Functions
  • Loading branch information
davideast authored and housseindjirdeh committed Nov 26, 2018
1 parent 7b061b1 commit efff4d6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions api/src/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ export async function deploy(token: string) {
try {
return await client.deploy({
project: 'hnpwa-coffee',
only: 'hosting',
token,
cwd: process.cwd()
});
Expand Down
2 changes: 1 addition & 1 deletion api/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const runner = publisher({
if(typeof token === undefined || typeof token === null) {
throw new Error('No token provided for Firebase Hosting deployment');
}
await deploy(token!);
await deploy(token);
console.log('Deployed to Firebase Hosting!');
} catch (e) {
errors.report(e);
Expand Down

0 comments on commit efff4d6

Please sign in to comment.