heroku

Heroku: “heroku ps:exec” not working when deploying a container into a dyno

有些话、适合烂在心里 提交于 2020-06-26 09:42:19
问题 I'm deploying a Tensorflow Serving container to Heroku, everything is working fine, but when I try to ssh into the container for executing some commands, Heroku returns this error: C:\Users\whitm\Desktop\CodeProjects\deep-deblurring-serving>heroku ps:exec Establishing credentials... error ! Could not connect to dyno! ! Check if the dyno is running with `heroku ps' The Dyno is running correctly: C:\Users\whitm\Desktop\CodeProjects\deep-deblurring-serving>heroku ps Free dyno hours quota

Need to run a job at a specific time

纵然是瞬间 提交于 2020-06-26 07:14:39
问题 I'm trying to create a job in order to send a notification to a Twilio call, therefore it is important to have a robust solution that can make sure jobs are run at a specific time (I don't think being put into a queue is accurate enough). What is the best solution for this type of a task? These notifications need to happen at a specific time in the call. Such as "1 minute left". Therefore it needs to be able to: Run at arbitrary times (1:22PM or 2:45AM) Be defined by user input (they set the

Heroku can't find ts-node

大兔子大兔子 提交于 2020-06-26 05:57:10
问题 I am using Colyseus for my multiplayer game. The framework generated a typescript server which I tried to deploy to Heroku. I am getting the following error in my logs: 2019-08-18T09:45:55.362304+00:00 app[web.1]: npm ERR! syscall spawn 2019-08-18T09:45:55.363375+00:00 app[web.1]: npm ERR! my-app@1.0.0 start: `ts-node index.ts` 2019-08-18T09:45:55.363477+00:00 app[web.1]: npm ERR! spawn ENOENT 2019-08-18T09:45:55.363677+00:00 app[web.1]: npm ERR! 2019-08-18T09:45:55.363800+00:00 app[web.1]:

How do I deploy my Typescript Node.js app to Heroku?

匆匆过客 提交于 2020-06-24 23:20:13
问题 When testing locally I was previously running: "build-live": "nodemon --exec ./node_modules/.bin/ts-node -r dotenv/config -- ./index.ts" I then figured my Procfile should be something like: web: ./node_modules/.bin/ts-node -- ./index.ts But it says module 'typescript' not found, even when it is in package.json . I read in a few places that ts-node is not the way to go to deploy to Heroku, so I am not sure what to do. UPDATE: I think I am supposed to compile it, so I tried: web: ./node_modules

How do I deploy my Typescript Node.js app to Heroku?

霸气de小男生 提交于 2020-06-24 23:20:06
问题 When testing locally I was previously running: "build-live": "nodemon --exec ./node_modules/.bin/ts-node -r dotenv/config -- ./index.ts" I then figured my Procfile should be something like: web: ./node_modules/.bin/ts-node -- ./index.ts But it says module 'typescript' not found, even when it is in package.json . I read in a few places that ts-node is not the way to go to deploy to Heroku, so I am not sure what to do. UPDATE: I think I am supposed to compile it, so I tried: web: ./node_modules

AWS Cloudfront as CDN for Heroku Site with Custom Domain

此生再无相见时 提交于 2020-06-24 13:52:26
问题 Recently, I bought a domain from AWS Route 53 (brianpatrickhummel.com) to host a personal portfolio. The portfolio site is up and running, using an S3 bucket and Cloudfront as a CDN. On the portfolio site, visitors are able to preview some apps that I built, which launch in-site using iframe elements, and I noticed that my Heroku-deployed apps take 10-20 seconds to load, since those sites have very few visitors on average and have no CDN service. Therefore, I began researching using AWS

Heroku gunicorn deploy error: NoModuleNameError

天涯浪子 提交于 2020-06-23 11:25:39
问题 possibly a little out my depth here, I've read the heroku docs thoroughly and still don't quite understand how the Procfile should be set up. Trying to deploy heroku ( $ heroku open ), gives this error log: 2020-01-27T11:39:57.597570+00:00 app[web.1]: backlog: 2048 2020-01-27T11:39:57.597572+00:00 app[web.1]: workers: 1 2020-01-27T11:39:57.597590+00:00 app[web.1]: worker_class: sync 2020-01-27T11:39:57.597592+00:00 app[web.1]: threads: 1 2020-01-27T11:39:57.597594+00:00 app[web.1]: worker

Heroku gunicorn deploy error: NoModuleNameError

可紊 提交于 2020-06-23 11:22:23
问题 possibly a little out my depth here, I've read the heroku docs thoroughly and still don't quite understand how the Procfile should be set up. Trying to deploy heroku ( $ heroku open ), gives this error log: 2020-01-27T11:39:57.597570+00:00 app[web.1]: backlog: 2048 2020-01-27T11:39:57.597572+00:00 app[web.1]: workers: 1 2020-01-27T11:39:57.597590+00:00 app[web.1]: worker_class: sync 2020-01-27T11:39:57.597592+00:00 app[web.1]: threads: 1 2020-01-27T11:39:57.597594+00:00 app[web.1]: worker

How to set environment variable with heroku?

淺唱寂寞╮ 提交于 2020-06-23 11:06:22
问题 I'm trying to set an environment variable with this command line: heroku config:set ENV=PRODUCTION But I have this error : ! Missing required flag: ! -a, --app APP app to run command against ! See more help with --help my app name is disquairedjangoaj96 回答1: I think what you need now is to tell heroku in which app you want to set the env variable. heroku config:set ENV=PRODUCTION --app disquairedjangoaj96 Maybe this guide can help you https://devcenter.heroku.com/articles/using-the-cli#app

How to set environment variable with heroku?

北战南征 提交于 2020-06-23 11:06:12
问题 I'm trying to set an environment variable with this command line: heroku config:set ENV=PRODUCTION But I have this error : ! Missing required flag: ! -a, --app APP app to run command against ! See more help with --help my app name is disquairedjangoaj96 回答1: I think what you need now is to tell heroku in which app you want to set the env variable. heroku config:set ENV=PRODUCTION --app disquairedjangoaj96 Maybe this guide can help you https://devcenter.heroku.com/articles/using-the-cli#app