heroku

heroku node.js bash: node: command not found

痴心易碎 提交于 2020-01-03 18:57:10
问题 there seems to be a strange problem with the deployment of my app on heroku on cedar stack where my node process doesn't even get called my Procfile is as follows: web: node web.js and my package.json file: { "name": "fuuzik", "version": "0.0.1", "dependencies": { "express": "3.x", "jade":"*", "mime-magic":"*" }, "engines": { "node": "0.8.x", "npm": "1.1.x" } } So after i commit and push heroku detects it's a node app fine and builds my dependancies correctly and even says that it deployed ..

Cannot find module 'ejs' - Node.js app on Heroku

寵の児 提交于 2020-01-03 18:51:48
问题 My app was working locally but when I deployed to Heroku, there was an issue. This was my error, It seems that the error was caused by something that I failed to do after I added EJS. 2014-01-06T16:53:39.285571+00:00 app[web.1]: module.js:340 2014-01-06T16:53:39.285956+00:00 app[web.1]: throw err; 2014-01-06T16:53:39.286233+00:00 app[web.1]: ^ 2014-01-06T16:53:39.288439+00:00 app[web.1]: Error: Cannot find module 'ejs' 2014-01-06T16:53:39.288439+00:00 app[web.1]: at Function.Module.

Cannot find module 'ejs' - Node.js app on Heroku

泄露秘密 提交于 2020-01-03 18:50:08
问题 My app was working locally but when I deployed to Heroku, there was an issue. This was my error, It seems that the error was caused by something that I failed to do after I added EJS. 2014-01-06T16:53:39.285571+00:00 app[web.1]: module.js:340 2014-01-06T16:53:39.285956+00:00 app[web.1]: throw err; 2014-01-06T16:53:39.286233+00:00 app[web.1]: ^ 2014-01-06T16:53:39.288439+00:00 app[web.1]: Error: Cannot find module 'ejs' 2014-01-06T16:53:39.288439+00:00 app[web.1]: at Function.Module.

“bash: play: command not found” when trying heroku for the first time

孤街醉人 提交于 2020-01-03 17:44:59
问题 I'm trying out Play! with heroku and was going through the guide in the heroku site (https://devcenter.heroku.com/articles/play). After deploying my sample app, I noticed the dyno crashed. I checked the heroku logs and found out that heroku couldn't find the play command. Anyone know how to install the Play! framework on heroku? I searched the dev center but couldn't find any info. 回答1: Heroku will automatically detect Play! applications and install the Play! runtime for you when you push

Installing Heroku's Taps gem

心已入冬 提交于 2020-01-03 17:42:08
问题 I'm trying to use Heroku's Taps gem to get my database from their server. When I run $heroku db:pull it says I need to install the Taps gem using the command: sudo gem install taps I run this command, and as expected, Taps says it has installed ("1 gem installed"). I'm able to run the Gem update taps command without an error after installing. However, $gem list does not show Taps as installed, and I cannot see it in the gem folder at /Users/username/.rvm/gems/ree-1.8.7-2010.02@timeline

How can I turn off asset compilation completely on a rails app on Heroku?

穿精又带淫゛_ 提交于 2020-01-03 17:24:12
问题 I have a rails app which runs a service which has no assets. When I deploy, I see: -----> Preparing app for Rails asset pipeline Running: rake assets:precompile rake aborted! could not connect to server: Connection refused Is the server running on host "127.0.0.1" and accepting TCP/IP connections on port 5432? /tmp/build_3pneyggcg60ks/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.14/lib/active_record/connection_adapters/postgresql_adapter.rb:1222:in `initialize' /tmp/build_3pneyggcg60ks

How heroku run python manage.py migrate?

折月煮酒 提交于 2020-01-03 16:59:32
问题 I deployed a simple Django app in Heroku Steps: - git push heroku master - heroku run python manage.py makemigrations ( or + app_name) it seem to affect: 0002_main.py: - Create model Comment - Remove field status from match - Remove field quantity from slot - Add field avatar to account - Add field slots to match - Alter field verification_code on account - Alter field verification_code on slot - Add field match_object to comment - Add field user to comment - Alter index_together for comment

Heroku + Django + Dnsimple - How Do I redirect www request to non-www domain

醉酒当歌 提交于 2020-01-03 16:49:36
问题 Hi i have a django site on Heroku with Dnsimple to manage DNS. I am also using Django to force HTTPS. I am trying to follow google protocol so that I only have one domain https://example.com So that if a user visits http://www.example.com or https://www.example.com it will redirect to https://example.com My settings in Dnsimple look like this: ALIAS example.com example.com.herokudns.com CNAME www.example.com example.com.herokudns.com I tried deleting the cname and using the URL redirect in

Heroku could not authenticate mongolab

旧时模样 提交于 2020-01-03 16:36:20
问题 It was corrected two days ago. And yesterday I committed some changes to heroku and the application crashed, I found from heroku logs that: /app/.bundle/gems/ruby/1.9.1/gems/mongo-1.4.0/lib/mongo/db.rb:137:in `issue_authentication': Failed to authenticate user 'larryzhao' on db 'uthenera' (Mongo::AuthenticationError) I even explicitly input the host/port/username/password/db name into mongoid.yml, still it could not get pass authentication. I tried both database in Rackspace and in Amazon,

How to configure database.yml for deployment to Heroku

瘦欲@ 提交于 2020-01-03 15:17:07
问题 I recently upgraded to the newest version of Rails, and I don't understand how to deploy applications to Heroku. Here is my database.yml file default: &default adapter: postgresql pool: 5 timeout: 5000 development: <<: *default database: db/development.sqlite3 test: <<: *default database: db/test.sqlite3 production: <<: *default database: db/production.sqlite3 I have never seen this syntax before in database.yml. Does anyone know how to configure this? It looks a lot different than what I'm