ipfs-shipyard / ipfs-deploy

Zero-Config CLI to Deploy Static Websites to IPFS
Other
1.16k stars 122 forks source link

pinata environment variables not read #150

Closed SCBuergel closed 3 years ago

SCBuergel commented 4 years ago

I am trying to deploy but it fails:

$ ipd www/ -p pinata
āœ” šŸšš  Directory www/ weighs 230.9 KiB.

  ā”Œā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”
  ā”‚                                                                          ā”‚
  ā”‚ Error: Missing the following environment variables:                      ā”‚
  ā”‚                                                                          ā”‚
  ā”‚ IPFS_DEPLOY_PINATA__API_KEY                                              ā”‚
  ā”‚ IPFS_DEPLOY_PINATA__SECRET_API_KEY                                       ā”‚
  ā”‚                                                                          ā”‚
  ā””ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”˜

on latest mac OS and latest ipd (installed via yarn). I signed up for pinata, confirmed my email and got the api and api secret which I both set in my ~/.bash_profile, restarted terminal and double checked that the environmental vars are indeed set (they are): $ echo $IPFS_DEPLOY_PINATA__API_KEY 6d....

hacdias commented 3 years ago

Hello @SCBuergel, that sounds a bit odd. Would you mind retrying with newer versions?

hacdias commented 3 years ago

I'm closing this as this can't be reproduced and there's no other issues of the kind. If this issue persists, please let me know.

cyberfunk commented 5 months ago

I am trying to deploy but it fails:

$ ipd www/ -p pinata
āœ” šŸšš  Directory www/ weighs 230.9 KiB.

  ā”Œā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”
  ā”‚                                                                          ā”‚
  ā”‚ Error: Missing the following environment variables:                      ā”‚
  ā”‚                                                                          ā”‚
  ā”‚ IPFS_DEPLOY_PINATA__API_KEY                                              ā”‚
  ā”‚ IPFS_DEPLOY_PINATA__SECRET_API_KEY                                       ā”‚
  ā”‚                                                                          ā”‚
  ā””ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”˜

on latest mac OS and latest ipd (installed via yarn). I signed up for pinata, confirmed my email and got the api and api secret which I both set in my ~/.bash_profile, restarted terminal and double checked that the environmental vars are indeed set (they are): $ echo $IPFS_DEPLOY_PINATA__API_KEY 6d....

How did you set those values in your .zshrc profile (.bash_profile)? I just copied and pasted the environment commands with proper api keys into my .zshrc profile using text edit, saved it and got a parse error next time I opened terminal.

I pasted these with proper keys in my .zshrc profile in Text Edit:

IPFS_DEPLOY_PINATA__API_KEY= IPFS_DEPLOY_PINATA__SECRET_API_KEY=