heroku

Setting up email with Sendgrid in Heroku for a Django App

 ̄綄美尐妖づ 提交于 2019-12-31 08:46:48
问题 I am deploying a Django app on Heroku, and using the Sendgrid addon to send out validation email when a user registers on the site. I followed the instructions here and pasted the following into settings.py : EMAIL_HOST = 'smtp.sendgrid.net' EMAIL_HOST_USER = 'sendgrid_username' EMAIL_HOST_PASSWORD = 'sendgrid_password' EMAIL_PORT = 587 EMAIL_USE_TLS = True However, my app is crashing after registration. What exactly am I supposed to put for EMAIL_HOST_USER and EMAIL_HOST_PASSWORD ? Under the

heroku run rake db:migrate error

岁酱吖の 提交于 2019-12-31 07:17:09
问题 I want do run migration on my app that I have on heroku but I get this error: Running `rake db:migrate` attached to terminal... up, run.1 DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has

Heroku_can't upgrade to Cedar-14

烈酒焚心 提交于 2019-12-31 06:57:21
问题 As requested on Heroku, I am trying to upgrade from Cedar-10 to Cedar-14, but in vain. On my console, When I execute heroku stack:set cedar-14 I get this: `stack:set` is not a heroku command. Even if I've already installed the latest version of heroku toolbelt as proposed there (I am on Windows), I get the same error message Many thanks 回答1: It looks like your current heroku version isn't up to date. Things you can try: heroku update If that doesn't work gem uninstall heroku Reinstall the gem

Rails won't precompile .js.erb

谁说我不能喝 提交于 2019-12-31 06:12:45
问题 Why Rails won't precompile a .js.erb asset? My config/application.rb : require File.expand_path('../boot', __FILE__) require 'rails/all' Bundler.require(:default, Rails.env) module Sflitmap class Application < Rails::Application # these precompile OK config.assets.precompile += ['edge/edge.1.5.0.min.js', 'edge/ink-falling_edgeActions.js', 'edge/inkAnimationTrigger.js'] # this will not precompile config.assets.precompile += ['edge/ink-falling_edge.js.erb'] end end My config/environments

running rails 3.2 / mongoid app on heroku fails

半腔热情 提交于 2019-12-31 05:48:07
问题 I'd like to now if anybody could help me with my heroku deployement. I've set up my Rails 3.2 app with the following Gemfile source 'https://rubygems.org' gem 'rails', '3.2.0' # Bundle edge Rails instead: # gem 'rails', :git => 'git://github.com/rails/rails.git' gem 'sqlite3-ruby', :require => 'sqlite3' gem 'mongoid' gem 'bson_ext' gem 'mongoid_slug' gem 'heroku' # Gems used only for assets and not required # in production environments by default. group :assets do gem 'sass-rails', '~> 3.2.3'

Is it safe to publish an app on Heroku that has api keys on there?

好久不见. 提交于 2019-12-31 04:18:11
问题 I am planning to deploy an app that uses a few api keys on Heroku. I was planning on using there git deployment method. I have a few api keys on the application that could create problems if they were to be compromised. Is it safe to deploy an app like that through Heroku? Should I use their dropbox method instead? Any insight or feedback would be appreciated. Thank you in advance! 回答1: As long as you trust Heroku, is shouldn't make a difference which deployment method you use. However, make

Heroku created table but when I'll migrate, he says that doesn't created

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-31 01:48:13
问题 I made syncdb (Python/Django application) in Heroku and he created table south_migrationhistory, (venv-project)username@username:~/projectapp$ heroku run python manage.py syncdb Running `python manage.py syncdb` attached to terminal... up, run.5529 Syncing... Creating tables ... Creating table auth_permission Creating table auth_group_permissions Creating table auth_group Creating table auth_user_groups Creating table auth_user_user_permissions Creating table auth_user Creating table django

Syntax error when deploying Rails app to Heroku: ExecJS::RuntimeError: SyntaxError: Unexpected character

坚强是说给别人听的谎言 提交于 2019-12-31 01:47:09
问题 I am trying to deploy my app to Heroku but its throwing me this error. "ExecJS::RuntimeError: SyntaxError: Unexpected character '`' (line: 14577, col: 33, pos: 440811" I assume there is something wrong with the coffeescript/javascript. I have deleted all of my coffeescript files and I dont know what I'm doing wrong. As suggested by Iceman, ive tried running the command rake assets:precompile RAILS_ENV=development and it says I, [2017-01-26T16:32:25.173928 #2674] INFO -- : Writing >/Users/Gana

The system cannot find the path specified when starting Ruby and Rails command prompt

徘徊边缘 提交于 2019-12-31 01:45:14
问题 I just started learning rails a week ago and everything worked until today. Now when I start the Ruby command prompt, it says: The system cannot find the path specified. # Under Rails Environment Configuration. The system cannot find the path specified. The system cannot find the path specified. The system cannot find the path specified. The system cannot find the path specified. The system cannot find the path specified. --- The paths for ruby and rails show up correctly. I'm using Windows

How to save Heroku logs to text file

烂漫一生 提交于 2019-12-31 00:59:28
问题 I am having a problem with logs in Heroku. When I want to look at the logs, sometimes I have missed a few lines. How can I save Heroku server logs to file.txt, or any other file? 回答1: You can try this: heroku logs -n number_of_lines --app application_name >> file_name >> operator will appends the command output to the end of a file : file_name however, heroku keeps the last 1,500 lines of consolidated logs. If you’d like to persist more than 1,500 lines for long-term storage, search, alerting