neplextech / canvacord

Easily generate images using react-like components in nodejs. Canvacord is suitable for creating dynamic images such as social media posts, greetings cards, memes, etc. It is also possible to create your own templates and builders to generate images. You are only limited by your imagination.
https://canvacord.neplex.dev
GNU General Public License v3.0
259 stars 74 forks source link

Heroku Hosting #58

Closed nairol203 closed 3 years ago

nairol203 commented 3 years ago

How can I host a Bot w/ Canvacord on Heroku? I tried the Cairo Buildpack but thats not work on Heroku-16 stacks and Cedar-14 Stacks are in end of life.

zyrouge commented 3 years ago

Can you elaborate the issue? (Additional info about the error)

nairol203 commented 3 years ago

This is the log from Heroku when i try to deploy my bot with canvacord installed:

-----> Installing dependencies Prebuild detected (node_modules already exists) Rebuilding any native modules

   > canvas@2.6.1 install /tmp/build_c33db5e2_/node_modules/canvas
   > node-pre-gyp install --fallback-to-build

   sh: 1: node-pre-gyp: Permission denied
   npm ERR! code ELIFECYCLE
   npm ERR! errno 126
   npm ERR! canvas@2.6.1 install: `node-pre-gyp install --fallback-to-build`
   npm ERR! Exit status 126
   npm ERR! 
   npm ERR! Failed at the canvas@2.6.1 install script.
   npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

   npm ERR! A complete log of this run can be found in:
   npm ERR!     /tmp/npmcache.zFPIB/_logs/2021-01-05T01_22_50_801Z-debug.log

-----> Build failed

zyrouge commented 3 years ago

Are you pushing node_modules too?

OmgImAlexis commented 3 years ago

This is likely a Heroku issue not a canvacord one. Please check stack overflow before opening an issue next time.

https://stackoverflow.com/a/52288563/2311366