heroku

Heroku: docker entrypoint not found

妖精的绣舞 提交于 2020-01-24 12:23:46
问题 I am trying to deploy a project on Heroku. I have set up bash entrypoint application, which is located in application root directory. Dockerfile content: FROM node:10 # Create app directory WORKDIR /usr/app # Install app dependencies # A wildcard is used to ensure both package.json AND package-lock.json are copied # where available (npm@5+) COPY package*.json ./ RUN npm install # If you are building your code for production # RUN npm ci --only=production # Bundle app source COPY . . RUN

Heroku: docker entrypoint not found

纵饮孤独 提交于 2020-01-24 12:23:39
问题 I am trying to deploy a project on Heroku. I have set up bash entrypoint application, which is located in application root directory. Dockerfile content: FROM node:10 # Create app directory WORKDIR /usr/app # Install app dependencies # A wildcard is used to ensure both package.json AND package-lock.json are copied # where available (npm@5+) COPY package*.json ./ RUN npm install # If you are building your code for production # RUN npm ci --only=production # Bundle app source COPY . . RUN

Rufus scheduler tasks on heroku running more often than scheduled

随声附和 提交于 2020-01-24 07:03:07
问题 I have a Rails app running on heroku with Rufus Scheduler added on. A 'once a day' task in the scheduler is running more often than once a day. My guess would be something to do with the heroku app running on different dynos during the day, but I'm at a loss on how to confirm/fix the problem. Has anyone else seen this/know of a solution? Edit: I couldn't resolve the problem with the gem and have moved my app over to the heroku scheduler add on which does not experience this problem. 回答1: The

Push to Heroku denied - “failed to push some refs to 'heroku”

大憨熊 提交于 2020-01-24 06:05:14
问题 I should start by saying I'm totally new to Heroku, and it's all looking pretty to foreign to me right now. Anyway, I've done the Heroku getting started tutorial, uploading a clone git repo, and this works fine. I'm now trying to accomplish this with some of my own code, but struggling. First, I go to my app directory in bash. Then I run heroku create . This is successful. I then run git push heroku master as instructed in the tutorial, and I receive the following errors: error: src refspec

Running Heroku Postgres with least privilege

本小妞迷上赌 提交于 2020-01-24 05:20:08
问题 Can I connect to a Heroku Postgres database via an web/application without the risk of dropping a table? I'm building a Heroku application for a third party which uses Heroku Postgres for the backend. The third party are very security sensitive so I'm looking at applying "Layered security" throughout the application. So for example checking for SQL injection attacks at the web/application layer. Applying a "Layered security" approach I should also secure the database in case a potential SQL

Heroku docker deployment

天大地大妈咪最大 提交于 2020-01-24 04:04:57
问题 I was following the this article https://devcenter.heroku.com/articles/container-registry-and-runtime and I'm stuck with "heroku container:push". I run "heroku container:push --app mediabox" and the docker image is properly build and then it start to push it to registry and this is what I get: Successfully built 7926b98d51b5 The push refers to a repository [registry.heroku.com/mediabox/web] 38d48dd6de30: Preparing 969058e6ddc9: Preparing 2f454953e0e7: Preparing f67c1ecd32a1: Preparing

Heroku docker deployment

孤人 提交于 2020-01-24 04:04:21
问题 I was following the this article https://devcenter.heroku.com/articles/container-registry-and-runtime and I'm stuck with "heroku container:push". I run "heroku container:push --app mediabox" and the docker image is properly build and then it start to push it to registry and this is what I get: Successfully built 7926b98d51b5 The push refers to a repository [registry.heroku.com/mediabox/web] 38d48dd6de30: Preparing 969058e6ddc9: Preparing 2f454953e0e7: Preparing f67c1ecd32a1: Preparing

rails app not finding fontawesome icons on heroku

佐手、 提交于 2020-01-24 03:45:51
问题 I installed a bootstrap theme and everything is working well locally. However, when I went to push to heroku, my app couldn't find the fonts. I precompiled the assets and pushed to heroku, but no icons. So, I made my development environment like heroku with the following in development.rb: config.assets.debug = true # Disable Rails's static asset server (Apache or nginx will already do this). config.serve_static_assets = true # Compress JavaScripts and CSS. config.assets.js_compressor =

rails app not finding fontawesome icons on heroku

空扰寡人 提交于 2020-01-24 03:45:29
问题 I installed a bootstrap theme and everything is working well locally. However, when I went to push to heroku, my app couldn't find the fonts. I precompiled the assets and pushed to heroku, but no icons. So, I made my development environment like heroku with the following in development.rb: config.assets.debug = true # Disable Rails's static asset server (Apache or nginx will already do this). config.serve_static_assets = true # Compress JavaScripts and CSS. config.assets.js_compressor =

SQLException: Timed out waiting for a free available connection

匆匆过客 提交于 2020-01-24 03:09:43
问题 I'm building an app in java with Play Framework 2.0.4 . The app is deployed in heroku with cleardb database. Users keep getting this occasional error: PlayException: Execution exception [[PersistenceException: java.sql.SQLException: Timed out waiting for a free available connection.]] at play.core.ActionInvoker$$anonfun$receive$1.apply(Invoker.scala:134) at play.core.ActionInvoker$$anonfun$receive$1.apply(Invoker.scala:115) at akka.actor.Actor$class.apply(Actor.scala:318) at play.core