w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Unable to deploy on Heroku after migrating rails app from 3.2.3 to rails 4.0.0.rc2
Your problem is during slug compilation the environment variables are not available to your app. Try installing the user-env-compile labs feature.

Categories : Ruby On Rails

Cannot deploy my application on Heroku
Try changing the initialize_on_precompile configuration to false in your application.rb file like so: config.assets.initialize_on_precompile = false Source: http://www.simonecarletti.com/blog/2012/02/heroku-and-rails-3-2-assetprecompile-error/

Categories : Ruby On Rails

Asset are not show after deploy - heroku - rails 4
The random id behind the filename you're seeing is the MD5 fingerprint, which is added in production mode. This is a cache-busting technique. So you can't actually refer to an asset by filename alone in production mode. So, wherever you're trying to refer to the asset, you need to use asset_path at the least. Or, if you have an image then image_tag will do the right thing for you. Here's a better explanation for why the MD5 fingerprint is a good thing: http://guides.rubyonrails.org/asset_pipeline.html#what-is-fingerprinting-and-why-should-i-care-questionmark Here's info on the available helpers you must use to include the proper MD5 fingerprint in your asset paths: http://guides.rubyonrails.org/asset_pipeline.html#coding-links-to-assets

Categories : Ruby On Rails

Can't deploy Rails app to Heroku, "Invalid RUBY_VERSION"
Just wondering if this changes your situation, as your Gemfile almost looks like mine, but for these changes. 1)Of course, assuming you are in your Rails Root folder and your less Gemfile is the actual one above. You did also bundle too after changes. 2) change source 'https://rubygems.org' 3) optional Heck, try switching version to ruby '2.0.0' just to get passed it. 4) I think this is needed too: gem 'rails_12factor' All these tricks should make it work at least. EDIT Why is require 'addressable/uri' there? remove this and add gem 'addressable' instead.

Categories : Ruby On Rails

trouble with precompilation. trying to deploy a rails app with heroku
Now that I see your logs I did some looking around and you are not the only person to experience this. Try removing the locally compiled assets with: git rm -r public/assets then push to heroku. Leave the change you made to your production.rb.

Categories : Ruby On Rails

How do I deploy my rails app to Heroku using an existing SQL database?
Yes. You can configure your application any way you like including specifying a non-Heroku database in your config file, and including using the default Heroku paradigm of using environment variables for config but with manually set database URLs in the environment variables. You can either continue hosting your MySQL database separately, or migrate your data to a MySQL database hosted within the Heroku platform, like ClearDB (provided as a Heroku add-on).

Categories : Ruby On Rails

Heroku Rails 4 / Ruby 2.0.0 Deploy Fail, Production Database is not connectable
Rails is trying to connect to your database during the asset compilation phase. This can be disabled by: config/application.rb config.assets.initialize_on_precompile = false You can let heroku have access to the environment during asset compilation heroku labs:enable user-env-compile https://devcenter.heroku.com/articles/labs-user-env-compile

Categories : Ruby On Rails

heroku fails to take a rails application
heroku does not support sqlite3 , use Postgresql instead. group :development do gem 'sqlite3' end group :test, :production do gem 'pg' end In this way sqlite will be your local db , and postgres will be for test and production

Categories : Ruby

Rails 4 Heroku Application Error
From https://devcenter.heroku.com/articles/ruby-versions: $ rake rails:update:bin This will generate a bin directory in the root of your application. Make sure that it is NOT in your .gitignore file, and check this directory and its contents into git. Have you checked your .gitignore file?

Categories : Ruby On Rails

How to Run and Deploy (1.8.6 Ruby) Application with (2.0.0 Rails) Framework
Pretty vintage setup you got there! It really depends very much on the size of the app and the test coverage.. You always have to evaluate what is more sensible or time consume... e.g. to write new tests in some old library, or to do testing manually... to migrate or to rewrite, etc. But here are some good practices: Migrate step by step on your development environment Isolate every framework, ruby, gem change if possible, and test whole app afterwards If you don't have any tests you will have to do the testing manually which is fragile to say the least... or in some cases you can write new tests (but that is time-consuming) Once you have the app running and fully tested on your development environment, you can deploy/migrate to the new server I hope this helps to some extent.

Categories : Ruby On Rails

install a python library, specifically pycurl, on my heroku box (Rails application)
add a requirements.txt file to your python deployment. Write your python dependencies in it (add any other dependencies you have not only pycurl). check this doc from heroku guys I use pycurl on my heroku app and have found no problem uploading to heroku.. Installing dependencies using Pip (1.3.1) Downloading/unpacking pycurl==7.19.0 (from -r requirements.txt (line 11)) Running setup.py egg_info for package pycurl Using curl-config (libcurl 7.19.7) Installing collected packages: pycurl Running setup.py install for pycurl Using curl-config (libcurl 7.19.7) building 'pycurl' extension gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DHAVE_CURL_OPENSSL=1 -DHAVE_CURL_OPENSSL=1 -DHAVE_CURL_SSL=1

Categories : Python

First Heroku Push of Application to Heroku leads to Application Error
have you migrated the database? like this: heroku run rake db:migrate if that dosn't work use this: run heroku logs, and paste the log here 2013-08-12T17:54:56.944875+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/bundler-1.3.2/lib/bundler/rubygems_integration.rb:224:in `block in replace_gem': can't activate bcrypt-ruby (~> 3.0.0), already activated bcrypt-ruby-3.1.1. Make sure all dependencies are added to Gemfile. (Gem::LoadError) maybe you forgot to add a gem explicity in your gemfile,

Categories : Ruby On Rails

Deployed Scaffold rails app to Heroku. "heroku open" gives "page you were looking for doesn't exist"
It doesn't look like you have an error - just that you haven't set a route for the root. ie. something like this in routes.rb root 'home#index'. PS. Note that Rails 4 does something weird in production - it behaves differently to development mode, and expects an explicit root route defined.

Categories : Ruby On Rails

Heroku and Rails 4: Heroku isn't finding my nested folder under assets/javascripts
Add this to your GEMFILE group :heroku do gem 'rails_log_stdout', github: 'heroku/rails_log_stdout' gem 'rails3_serve_static_assets', github: 'heroku/rails3_serve_static_assets' end If that doesn't work, here is my Rails 4 app on Heroku. https://github.com/andey/bestofama . Feel free to browse the config for any differences

Categories : Javascript

git push heroku master issue. heroku wont allow me to upload my application
Heroku no longer supports SQLite as a database so you will have to switch to the Postgres gem: pg. While you could use sqlite3 for development and postgres for production, it's not recommended as you want to keep your dev and prod environments as similar as possible. Heroku has a guide to get you started

Categories : GIT

Deploy Railsapp on Heroku
You need to add your public key to Heroku - asumming you have one in your ~/.ssh folder (it would typically be called id_rsa.pub). If not generate one with ssh-keygen heroku keys:add should sort the problem out and you should be able to push your application.

Categories : Ruby On Rails

How to deploy a reveal.js app to heroku?
I was able to make it work using nodejs and expressJs. By following the heroku "getting started with nodejs", I was able to get a working webapp with expressjs and by declaring this in the web.js: var express = require("express"); var app = express(); app.use(express.logger()); app.use("/", express.static(__dirname)); var port = process.env.PORT || 5000; app.listen(port, function() { console.log("Listening on " + port); }); With this you serve everything from / statically. You have the sources here: https://github.com/MichaelBitard/revealjs_heroku and a working example here: http://murmuring-cove-4212.herokuapp.com/

Categories : Node Js

How to deploy a node.js app to heroku?? It is possible or not?
Heroku will automatically detect a nodejs application if you include a package.json file in the root of your project. Ensure that package.json is added to your git project before pushing your project to Heroku. Your nodejs application should be managed with NPM. For a complete working example see the Nodejs guide on Heroku: https://devcenter.heroku.com/articles/nodejs

Categories : Node Js

Failed Deploy Apps to Heroku
Not sure if this is the problem, but you're missing a step here: git init git add . git commit -m "init" git push origin master heroku login and then push ssh heroku create mycvdemo git push heroku master You can only push things to Heroku that have already been pushed to git. Commits are only local. This is a good explanation (with a picture!)

Categories : Ruby On Rails

How do you deploy Rserve on Heroku/Node.js
This is the best I could find https://github.com/virtualstaticvoid/heroku-buildpack-r and to run node.js and R simultaneously https://github.com/ddollar/heroku-buildpack-multi

Categories : Node Js

Deploy an app to heroku fail because of key not authorized
Need to manually delete openssl.cnf... find the file on your machine and rename it to something else.... Heroku client internal error. Unable to verify certificate

Categories : GIT

Can I Deploy a Plain Old .war File to Heroku?
Heroku Dev Center has an article on war-file deployment. You can use both the Eclipse plugin and the Heroku Toolbelt command-line tool.

Categories : Java

Unable to deploy django app on heroku
I noticed that your log shows Listening at: http://0.0.0.0:5000 Which looks like gunicorn is running on port 5000. Heroku apps typically run on a different port number based on the $PORT environment variable. I am supposing that Heroku has started your app (on port 5000) and then checks if it is up on port 12345 (or whatever is in $PORT). Try updating your Procfile to web: gunicorn hellodjango.wsgi -b 0.0.0.0:$PORT gunicorn versions >= 0.16.0 should listen on $PORT automatically.

Categories : Django

Deploy Scalatra on Heroku error
I had a similar issue. In the end I just looked through this complete example and made sure I had everything in place from there - https://github.com/scalatra/scalatra-website-examples/tree/master/2.2/deployment/scalatra-heroku

Categories : Scala

using heroku to deploy an app? Basic queries
First, if you are just starting out with Flask I would recommend you read The Flask Mega-Tutorial by Miguel Grinberg. The tutorial goes through the development of a web app, including deployment to Heroku, and does a good job of explaining why and how different methods are used. Regarding your question, Flask uses .html files as templates using the Jinja 2 template engine, which has a markup syntax similar to Django's. In order to use a template you need to call it with one of Flask's template rendering hooks, most commonly render_template. You can see that render_template is used in the guide you linked here (third from last code block): @app.route("/") def index(): return render_template('index.html') This tells Flask to generate a page using the 'index.html' template located

Categories : Python

Update and deploy PostgreSQL schema to Heroku
I support several django apps on heroku with Postgres. I just connect via PgAdmin and run my scripts when changes are required. I don't see any need for running a script every time a connection is made.

Categories : Python

Unable to deploy Git repo project into Heroku
Your problem is with sqlite3 gem: An error occurred while installing sqlite3 (1.3.8), and Bundler cannot continue. You have to add the pg gem to your Gemfile in production group, since Heroku uses PostgreSQL. You can continue using sqlite3 in your development and test groups. group :production do gem 'pg' end group :development, :test do gem 'sqlite3' end More info here: https://devcenter.heroku.com/articles/heroku-postgresql#connecting-in-ruby

Categories : Ruby On Rails

Django Heroku Clear Cache on deploy
You have next options: I always thought it was possible (and foreman locally worked for me with &&. Write your command python manage.py clear_cache and use it before launching server in Procfile: web: python manage.py clear_cache && gunicorn... If you use CircleCI you can edit your circle.yml file to clear cache after deployment If you wrote fabfile you can include python manage.py clear_cache after deployment. clear_cache command example: ` from django.core.management.base import BaseCommand from django.core.cache import cache class Command(BaseCommand): """ Command to clear cache """ help = "Clear cache" def handle(self, *args, **options): cache.clear()

Categories : Django

Deploy matplotlib on heroku failed. How to do this correctly?
Finally I'm able to manage this. First of all, I use this buildpack: https://github.com/dbrgn/heroku-buildpack-python-sklearn To use this buildpack I run this (maybe it is not a necessary step): heroku config:set BUILDPACK_URL=https://github.com/dbrgn/heroku-buildpack-python-sklearn/ Then I change the requirements.txt into this: argparse==1.2.1 distribute==0.6.24 gunicorn==17.5 wsgiref==0.1.2 numpy==1.7.0 matplotlib==1.1.0 scipy==0.11.0 scikit-learn==0.13.1 The most important part here is I install matplotlib 1.1.0 (currently the newest is 1.3.0). Some "deprecated numpy API" warnings might be occurred. But in my case it seems to be alright. And here is the result (the page site might probably down since I use the free server one) http://kokoropy.herokuapp.com/example/plotting

Categories : Python

Deploy existing repo to heroku with Eclipse
Without eclipse, you just add a remote with the Git URL for the Heroku app. For example, if the app is 'tubby-rabbit-9876' then on the command line: git add remote heroku git@heroku.com:tubby-rabbit-9876.git However one adds a remote within Eclipse, do that. UPDATE0 Within Eclipse, add a remote using: "Preferences > Team > Git > Configuration > Repository Settings > Add Entry..."

Categories : Eclipse

Can't deploy to Heroku because the server refused the connection
Include the following in your application.rb, above the Module Appname config.assets.initialize_on_precompile = false And read the Heroku Labs: user-env-compile Article

Categories : Ruby On Rails

send HTTP GET to each unicorn worker after heroku deploy
In case anyone is looking into this. The solution I came up with is to add: ActionController::Integration::Session.new(::Rails.application).get '/' to after_fork in unicorn.rb As far as I understand it this will construct a local rack call to the root path which should warm up anything just like the first real request would. I have not done extensive testing of this solution yet but will comment if I run into problems.

Categories : Ruby On Rails

How can I deploy a secure hash key to Heroku without pushing it to GitHub?
Use Config Vars with Heroku Toolbelt You can set environment variables via the command line with Heroku Toolbelt. The process is described in detail in the Heroku documentation, but as an example: # Set FOO as an environment variable for your app. $ heroku config:set FOO=bar # Access FOO from inside your Heroku app. puts ENV['FOO']

Categories : Security

Failed to bind to $PORT when trying to deploy Python/flask app to Heroku
if you look at this page https://devcenter.heroku.com/articles/dynos (search for "web dynos") you see that Heroku sets the environment variable $PORT So, even if you can't specify the port Flask will run on, you can at least know it from the $PORT variable.

Categories : Javascript

getting `invalid multibyte char (US-ASCII) (SyntaxError)` when trying to deploy to heroku
It seems that just replacing gem 'authlogic', :git => "git://github.com/binarylogic/authlogic.git" with gem 'authlogic' then rm Gemfile.lock bundle install git push heroku master causes the app to start.

Categories : Ruby On Rails

Deploy Nodejs on Heroku fails serving static files located in subfolders
Apparently, as explain in this question: Heroku(Cedar) + Node + Express + Jade Client-side javascript files in subdirectory work locally with foreman+curl but not when pushed to Heroku, you can't use __dirname with Heroku. The alternative seems to be: // At the top of your web.js process.env.PWD = process.cwd() // Then app.use(express.static(process.env.PWD + '/htdocs'));

Categories : Node Js

rails heroku - error code H10 bash: bin/rails: No such file or directory
Rails 4 project had a /bin directory, unlike some older Rails 3 projects I had cloned. /bin contains 3 files, bundle, rails, and rake, but these weren't making it to Heroku because I had bin in my global .gitignore file. This is a pretty common ignore rule if you work with Git and other languages (Java, etc.), so to fix this: Remove bin from ~/.gitignore Run bundle install Commit your changes with git add . and git commit -m "Add bin back" Push your changes to Heroku with git push heroku master

Categories : Ruby On Rails

Rails & Heroku: Running a script through rails runner using local files
To run a local script on Heroku: irbify.rb script.rb | heroku run rails console --app=my_app irbify.rb is a silly tiny script I wrote to convert a script to a single eval statement. Regarding passing data: you can serialize it in some form and put it inside script. Hope it helps someone. UPDATE: this does not work well anything beyond trivial datasets.

Categories : Ruby On Rails

rails 4 enabled rails to serve static assets: is it correct? (on heroku)
As Dean Winchester mentioned it, it is a good idea to use a CDN for your static assets. In fact when using only Heroku your Rails application would have to be responsible to serve static assets since Heroku Cedar architecture will not do that for you. Setting config.serve_static_assets = true is the way to go if you don't want to configure a CDN and use only Heroku.

Categories : Ruby On Rails

Web application directories and data are lost during build and deploy of the application in tomcat
Once you republish to Tomcat all new files form your workspace/project folder will be copied to the webapps folder, as well as all files in your webapps folder, which do not exist in your workspace, will be removed. If you upload files into f.e. webapps/YourProjectName/uploads/* directly, they will be removed because they do not exist in your workspace. The best way is to separate your projects files (everything in your .war) from custom files like user data or uploads, by saving the the latter in a directory outside your webapps folder. Once you are republishing they are not going to be removed. Otherwise, if you need something like 'example images' in your app to show to your customers (lets say they do not change that often) you can copy them into your workspace, so they will be repub

Categories : Eclipse



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.