Forums

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

How to deploy Gatsby site to ZEIT ?

Selvaganesh
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!
October 1, 2018

While i'm trying to deploy a gatsy site to zeit environment using bitbucket pipeline im getting error

bash: now: command not found

 

#My pipeline configuration


image: node:6.9.4

pipelines:
default:
-
step:
caches:
-
node
script:
-
npm install
-
npm build
-
npm install now
-
now --token $NOW_TOKEN

1 answer

0 votes
Philip Hodder
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 1, 2018

Hi Selvaganesh,

Can you try change your script to:

script:
- npm install
- npm build
- npm install -g now # Change this line.
- now --token $NOW_TOKEN

Some additional context on the '-g' flag: https://stackoverflow.com/a/8951576

Thanks,

Phil

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events