heroku

Heroku app crashes on startup for seemingly no reason (when it was working before recent push)

一曲冷凌霜 提交于 2020-01-07 01:58:10
问题 Ruby Version: 2.0 Rails Version 4.0 App works perfect on local environment, but since pushing recent changes to Heroku, I am getting this error page: This is what I am seeing in the logs: From push: 2013-08-22T00:57:54.227337+00:00 heroku[api]: Deploy bc28117 by drew.j.wyatt@gmail.com 2013-08-22T00:57:54.255350+00:00 heroku[api]: Release v40 created by drew.j.wyatt@gmail.com 2013-08-22T00:57:54.419023+00:00 heroku[web.1]: State changed from crashed to starting 2013-08-22T00:57:54+00:00 heroku

Heroku app doesn't get updated after git push heroku master

心已入冬 提交于 2020-01-06 22:26:15
问题 I have made an Angular app with Yeoman and deployed it to heroku. The initial push was fine. I was able to access the website. However, when I made some changes and try to do the git dance: git add . git commit -m "message" git push heroku master the website is not updated with the new changes even though there is no error occurred during the push. In order to check if the changes are actually pushed to heroku, I checked out a new branch and make some changes then commit and run: git add .

set secret keys for amazon aws3

。_饼干妹妹 提交于 2020-01-06 20:14:11
问题 I use fog and carrierwave. Right now I just have simple uploader that I run locally: CarrierWave.configure do |config| config.fog_credentials = { :provider => 'AWS', :aws_access_key_id => ENV['S3_ACCESS_KEY'], :aws_secret_access_key => ENV['S3_SECRET_KEY'], :region => 'us-west-1', # Change this for } config.fog_directory = "bucket-main" end But now I have a question where should I save my secret keys. On heroku environment I could print like this $ heroku config:set S3_ACCESS_KEY

Rails.application.assets is Nil on Heroku after upgrade sprockets-rails to 3.0.0

瘦欲@ 提交于 2020-01-06 20:03:15
问题 I check this command Rails.application.assets in local console it work but in heroku console it return Nil . but when I rollback to use sprockets-rails 2.3.3 and check Rails.application.assets in heroku console it return value. what happened? 回答1: This was the result of a change in sprockets-rails 3. See the issue https://github.com/rails/sprockets-rails/issues/237 You can get around the issue for now by setting config.assets.compile = true in /config/environments/production.rb 回答2: You might

Heroku: Deploying rails application troubles

限于喜欢 提交于 2020-01-06 19:51:24
问题 I'm trying to deploy my rails application with heroku (as shown here). I've created a very simple rails application (using ruby 1.9.2 and rails 3.0.3; i'm sure heroku supports these - see heroku docs), created and pushed github repo, created heroku repo and pushed it (all commiting is done). And when i'm trying to access my application controller, it throws 404 rails page like it's saying 'there is no such controller'. I've done heroku rake db:migrate but first time i ran it i got 'host not

Node.js: file upload buffers in memory and memory not freed up after upload is done

我与影子孤独终老i 提交于 2020-01-06 19:40:23
问题 Using Sails.js to upload images to Azure with this code: req.file('picture').upload({ adapter: require('skipper-azure'), key: storageAccount, secret: accessKey, container: 'default' }, function(err, files) { if(!err) { return res.json(cdn + files[0].fd); } else { return res.send(err); } }); I have 2 problems: Files are buffered to memory instead of being streamed The memory is not freed-up when file upload is done, is it a Node.js problem, Sails.js', or my problem? UPDATE When I upload a

Getting Timeout::Error exception in a heroku worker

烈酒焚心 提交于 2020-01-06 19:38:37
问题 I know heroku has a 30 seconds timeout limit for the dynos. But for workers, I've been executing many tasks in the past for many minutes and I had no problem. Now in a new feature of an application, I'm seeing the process in the worker is removed (Delayed Job) with a raised Timeout::Error exception if the task takes longer than 30 seconds. I want to confirm the maximum execution time for a worker in heroku. Thanks 回答1: There is no request timeout for workers (or dynos for that matter).

URI mismatch Rails generates MD5 digest in asset URL in production, but controller GET's a non-MD5 URL

蹲街弑〆低调 提交于 2020-01-06 19:37:18
问题 I have a Rails app with a page or two that uses the html5 video tag, and the corresponding Rails video_tag() method to display video on the page. I've added <%= video_tag "car_circle.mp4", width: "640", height: "500", controls: true %> to an html.erb file in views. Rails 3.2 looks for videos in the /public directory, and so I've added my videos to a folder called public/videos . In order to add this folder to the asset pipeline, I added this line to application.rb config.assets.paths << "#

Express Hello World — Heroku Foreman Returns Code 5, 'npm start' works just fine

不羁岁月 提交于 2020-01-06 19:25:51
问题 I'm following a tutorial in which I created a simple "Hello World" in Express. The tutorial gets everything up and running locally just fine with 'npm start'. The tutorial then moves on to prepare for uploading code to Heroku via Toolbelt. Following the directions (so far as I can tell), I execute 'foreman start'. When I hit the localhost URI, I get the basic HTML I'm expecting, but no CSS (no doubt related to the ERR_CONNECTION_REFUSED outputs I see in the console window, which is probably

How to run a node.js app in background on Azure

拥有回忆 提交于 2020-01-06 19:24:42
问题 Say I have this simple nodejs app and want to deploy it to Azure as a web app to run in background: //server.js function test() { // send some request to a url } setInterval(test, 10000); So I'd do this on Heroku by adding a Procfile and a command like worker: node server.js , but what's the equal method for azure? 回答1: Background tasks in Microsoft Azure App Service are called WebJobs. You can execute any of the following as a WebJob: .cmd, .bat, .exe (using windows cmd) .ps1 (using