w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
While Sending Html Mails from my web application Recieved Mails contains Symbols like &ldquo,&rdquo, ‘
Check with another constructor for htmlView: ContentType mimeType = new System.Net.Mime.ContentType("text/html"); var htmlView = AlternateView.CreateAlternateViewFromString(bodyMessage, mimeType);

Categories : Asp Net Mvc

whats the difference between git push heroku vs git push heroku master?
git push heroku master pushes the master branch to the heroku remote. git push heroku pushes the default branch (which is usually master) to the heroku remote.

Categories : GIT

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

git push heroku master fails in heroku
Installed MSysGit instead of git. Added the C:Program Files(x86)Gitin directory to the PATH variable and then doing what this answer says solved the problem.

Categories : Windows

Cannot push to heroku after adding a remote heroku repo to my existing local repo
The message you are seeing means that changes have been made to the application that you do not have in your local copy. When you push it's rejected because the Heroku remote is further ahead than yours, so you're right in thinking that your partner has pushed to Heroku without pushing to Github - it's a common scenario since you deploy from your local repository when you deploy to Heroku, unlike a traditional Capistrano deploy which would deploy the code from Github typically. It's down to you as a team to come up with ways of working which prevent this from occuring, but if you need to get working right now, you can either git push heroku master -f. This forces your changes and will overwrite what's there presently with your code git pull heroku master to pull the changes from Heroku

Categories : Ruby On Rails

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

First push django in heroku
Do you have a valid requirements.txt file? This file is needed by Heroku to pip install the relevant python packages that your app uses. To auto generate this file, just run the following code: pip freeze > requirements.txt The requirements.txt file should reside at the top most level, adjacent to the app. The 'Step 3 - Heroku Best Practices' section at http://www.deploydjango.com/django_project_structure/ will give you more info.

Categories : Django

Push files from git to heroku
See the last answer at Checking in code without deploying on Heroku. In general, once you git push heroku master, it will automatically deploy. So if you don't want that, the easiest would be to push it to a different branch in Heroku. BUT! Do not treat Heroku like github/bitbucket/insert favourite VCS provider. It just happens to use git as part of its deployment, because that is doing it wrong™. So you're better of storing your code in github, and let heroku handling deployments (and not store your code).

Categories : GIT

Heroku push is being rejected
Could be that you are having problems with the ruby version. If you don't specify, Heroku will use the default ruby version. Until recently it was 1.93, and as of not too long ago, it is 2.0. To tell Heroku which version of ruby you want to use, simply put at the top of your gemfile (just below the source) ruby and the version. After that, include the rails gem with a version. So the top of your gemfile should look something like this, with the correct version numbers: source 'https://rubygems.org' ruby "1.9.3" gem 'rails', '3.2.13'

Categories : Ruby On Rails

Local Gem Causes Heroku Push to Fail
you can try placing the gem in vendor/gems directory, create it if it doesn't exist.then in your Gemfile do like this: gem 'rails_multisite', path: 'vendor/gems/rails_multisite' and make sure you run bundle update so Heroku can Pickup the changes

Categories : Ruby On Rails

CSS and Images on Heroku broken after push
The problem you've got is that the images in the CSS are going to be static (image1.jpg), whereas in the pre-compiled production environment, they'll be called (image-05d983ce1986aa481e03729fca7a493a.jpg) A good way to see if this is the case is to go onto view source -> application-05d983ce1986aa481e03729fca7a493a.css and look for the images your app needs. If they are static, that's the problem. You may wish to try this to resolve it, but I feel it's a CSS issue (I have this problem too, so we're just seeing how to fix it): rake assets:precompile RAILS_ENV=production

Categories : Ruby On Rails

Cant push master branch to heroku
git pull would pull by default from GitHub, which has all your commits already. You might need to: git pull heroku clean-up the files (if the merge brings back the hardcoded values) push to origin push to heroku through the heroku command.

Categories : Ruby On Rails

Push just part of a git repository to heroku
The solution I would choose is branching. You have the master branch that is containing all files, and then a branch for each application that only contain what it needs. For example: $ git init $ git add . $ git commit -m "Initial commit" $ git checkout -b app1 # create a new branch for app1 derived from master $ git rm what-you-dont-need-for-app1 $ git commit -m "Initial app1 commit" $ git checkout master # switch to master again $ git checkout -b app2 $ # repeat same steps as for app1 You can also have a unique .gitignore-file in each branch to tell git what you don't want to commit.

Categories : GIT

How to switch between keys to push to Heroku?
Since Heroku's documentation was incomplete I found some guidance from Github. Apparently I was not using my SSH Key https://help.github.com/articles/error-permission-denied-publickey#make-sure-you-have-a-key-and-ssh-is-using-it . Which I found out by running ssh-add -l I then added it by running ssh-add ~/.ssh/[name_of_key] So you just replace "[name_of_key]" with your filename (modify the path if you need to). And do not include the .pub extension or you will get an WARNING: UNPROTECTED PRIVATE KEY FILE! error. You will then be prompted for your passphrase Enter passphrase And get a confirmation if all goes well Identity added:

Categories : GIT

Push a file to Heroku that's not in my git repo.
Use environment variables! You can access them from your python scripts, and heroku lets you easily set them for your app. Here is some information about setting config vars in heroku.

Categories : Python

After each push to Heroku I get 404 errors on images
Heroku is Read-only Filesystem The following types of behaviors are not supported: Caching pages in the public directory Saving uploaded assets to local disk (e.g. with attachment_fu or paperclip) Writing full-text indexes with Ferret Writing to a filesystem database like SQLite or GDBM Accessing a git repo for an app like git-wiki

Categories : Ruby On Rails

Can't push my code to heroku master
just delete it group :develppment, :test do gem 'sqlite3' end and add gem 'pg' to you Gemfile and run bundle in project dir Heroku works with postgres

Categories : Ruby On Rails

Rails App not Precompiling for Heroku Push
Move out following gems from group :development, :test gem 'sass-rails', '~> 4.0.0' gem 'bootstrap-sass', '~> 2.3.2.1' gem 'uglifier', '>= 1.3.0' gem 'coffee-rails', '~> 4.0.0' gem 'turbolinks' gem 'jbuilder', '~> 1.2' Heroku tries to compile files for production, not for development and testing.

Categories : Ruby On Rails

What's the difference between "java.io.IOException: Connection timed out" and "SocketTimeoutException: Read timed out"
A connection timeout means you attempted to connect to the remote IP/port pair and failed to do so: it did not answer at all. Another possible error at that stage would be connection refused, in which this pair is available but rejected your connection attempt. Both of these errors appear on the initial setup of a socket. Note that these errors only occur with TCP, since a TCP connection requires the establishment of a session. When you have a socket read timeout, it means you are connected, but failed to read data in time. Timeouts on sockets are configurable. You may also get a connection reset error, which means you did connect successfully, but the other end decided that after all you're not worth it :p

Categories : Java

CSS is not working after push to heroku but works on localhost
There is a lot of missing CSS codes ... add this to your main stylesheet file .box { float: left; overflow: hidden; background: #FFF; padding: 5px; box-shadow: 0 0 4px 0 #000; border-radius: 5px; margin: 5px; width: 210px; } #pins { overflow: hidden; } .box img { width: 100%; height: auto; border-radius: 5px; } and it will appear like this http://d.pr/i/rwce

Categories : CSS

Heroku push rejected due to pip/distribute bug. What's the workaround?
The behaviour you are seeing is an issue with pip itself: https://github.com/pypa/pip/issues/650 It seems that pip uses distribute to upgrade distribute. However, what you need to do to fix your error is remove distribute from requirements.txt altogether. It's already there since it's being installed by the buildpack and there's no need to install it again using pip. I believe you actually CAN and ARE installing distribute on heroku's servers via the default buildpack. Heroku's Python support is implemented in the form of a buildpack. You can read more about buildpacks here. If you wish to have a specific version of distribute, in this case one without the pip-bug, you have to replace it's source within the buildpack your app is using. It can be done like so: Get the original buildpa

Categories : Python

Ruby version change on heroku push
Heroku will never change the major or minor version of Ruby your app is running against only the patch level. In your Gemfile you can specify major/minor with ruby '1.9.2' But you cannot specify the patch level as Heroku will manage that for you. Also, when your app is on Heroku Rvm isn't used so that won't make a difference. So as Heroku change patch levels of ruby (as indicated on their changelog) you will see this type of behaviour occurring.

Categories : Ruby On Rails

After forced push to heroku images on AWS S3 are not showing (403)
Seems weird, but after adding a bucket-policy it seems to work. I am not sure this is all right, the heroku docs don't say anything about a bucket policy...and creating bucket policies is pretty cryptic! No like. Also because the policy looks like this: { "Version":"2008-10-17", "Statement":[{ "Sid":"AddPerm", "Effect":"Allow", "Principal": { "AWS": "*" }, "Action":["s3:GetObject"], "Resource":["arn:aws:s3:::bucket/*" ] } ] } Essentially granting access to anyone. Not sure if it needs to be that complicated to grant access to anyone? And maybe I am not even sure I want to grant access to anyone...but maybe it needs to be so? Otherwise how would people access images from a browser... Too many questions here :(

Categories : GIT

Failed to push to Heroku. Don't understand what's wrong
You say your Gemfile.lock is in version control but your error messages are saying that the Gemfile.lock doesn't match your Gemfile. You need to bundle install locally and commit your modified Gemfile.lock.

Categories : Ruby On Rails

Using Rails 4.0 Heroku push attr_accessible error
I think you are right it is because of devise.It is because in rails-4, ActiveModel::MassAssignmentSecurity has been taken out of ActiveModel. But devise uses attr_accessible, hence to use that, just add the following gem in ur Gemfile and try to load once again. gem 'protected_attributes' Now devise is supporting for rails-4. try this devise version it will help you gem 'devise', '3.0.0.rc' Edit: Then I will suggest you to use this link it is gives you some idea.

Categories : Ruby On Rails

Push rejected, failed to compile Node.js app heroku
The easiest way to make this work is to add node_modules to your .gitignore. Lots more info here: Fail to deploy node.js application to heroku

Categories : GIT

git push heroku master generates a fatal error
Use the turbo-sprockets-rails3 gem, which ensured system does not precompiling assets more than once, as well as caching them so subsequent precompiles would only precompile files that have changed.

Categories : Ruby On Rails

Heroku master push error with Xcode dependencies?
This will probably be hard to solve: the line checking for CoreFoundation... no tells me that it probably isn't portable to Linux (which Heroku is ultimately running): it depends on Apple's CoreFoundation library. Really clever tinkering might be able to build it using either GNUStep's Objective C toolchain or (less likely) even via opencflite, but that'd probably be a pretty uphill battle. Although being able to generate your XCode project 'in the cloud' like that certainly would be nifty! But something akin to MacinCloud is probably a way easier option.

Categories : Ruby On Rails

When to use timed cookies over a timed interval in a database
I believe you should use combination of both - database to store the data and client's cookies to identify row in the database table. Using IP address for identification is not very reliable because: More clients may have the same IP Client's IP address might change randomly (i.e. wifi / gsm connection on the smartphones) You can also use sessions which are probably faster and easier way to store user's information, and if you don't want to manage cookies by yourself, it's a way to go.

Categories : PHP

MEAN stack, Win 7, git push heroku master results in sh: bower: not found error
I was running into the same issue. Remove this line from your "scripts" dependency in your package.json file. "postinstall": "./node_modules/bower/bin/bower install" courtesy of https://github.com/isaacs/npm/issues/3609

Categories : GIT

Heroku- was working before computer restarted, now can't push to remote repository- access denied
It sounds like a problem with your ssh keys. Check your ~/.ssh directory for the keys and ensure that they match up with what you have on Heroku. https://devcenter.heroku.com/articles/keys this link taks about setting up your keys for use with their system. Hopefully that helps :)

Categories : GIT

How to solve the "Push rejected, no Cedar-supported app detected" on Heroku when pushing a Django project?
I'm pretty sure that correct the spelling of requirements.txt will fix this. Then on to the next problem of adding the postgres db and PROMOTING it. https://devcenter.heroku.com/articles/heroku-postgresql.

Categories : Django

What is the best way to build a scaleable analytics back-end using Heroku?
My high level comment for you is to build your system following the 12 factor design, and then worry about scaling as the customers arrive. I'm thrilled with Node.js and the npm ecosystem, but I also think you could build a perfectly acceptable platform with Rails. If it took 3 dynos to support 100 K concurrent users with Node, and double that with Rails, you still might be better off with Rails, if your comfort with Ruby got you to market 3 months faster. Anyway, assuming you go with Node, here are my answers: Here are some alternatives to Pusher that might work for you and a discussion of Pusher vs. Pubnub. Also see Ably. Use socket.io. It's largely the standard, because it uses the best transport available and falls back from WebSockets to HTTP methods. Node is a fantastic choice and

Categories : Node Js

Build fails when trying to compile spring roo sample heroku app
org.apache.maven.BuildFailureException: There are test failures. From the exception It seems your test data is not correct. If you okay with skip the test please run the below command else you need to fix the test failures. mvn package -Dmaven.test.skip=true

Categories : Java

Retrieving SNAPSHOT dependency on heroku with scala sbt build tool
Take a look at this buildpack that cleans snapshots for SBT based apps. heroku config:set BUILDPACK_URL=https://github.com/ethul/heroku-buildpack-scala.git#feature-clean-snapshots Originally mentioned here: https://github.com/heroku/heroku-buildpack-scala/issues/31

Categories : Scala

NGINX: upstream timed out (110: Connection timed out) while reading response header from upstream
Might be worth the look http://howtounix.info/howto/110-connection-timed-out-error-in-nginx (he put the proxy_read_timeout in the location block

Categories : Nginx

How do I execute custom build script when deploying node.js application to Heroku
I highly recommend the use of asset-rack, which will minify files when your server first starts up, as well as providing fingerprinted versions of the files that can be cached forever. https://github.com/techpines/asset-rack

Categories : Javascript

How do i sort out the loading delay with my stream? phonegap build
I have seen a few reports of this but never a solid answer. One thing to check is the buffer time setting on your stream server. Could be server side and not client side. As for disabling the play button until it is actually already playing, try this: idOfYourAudioTag.addEventListener("playing", function() { //enable your button here }); If the "playing" event is fired too early, you can try the other event listeners. See the events section in this URL: http://www.w3schools.com/tags/ref_av_dom.asp

Categories : Javascript

Run brunch build and tests after to push into a git repo
You could have a: update hook for JSHint (as in "JSHint on Git Push (Update Hook)") post-update hook for deploying the app (as in "using git to deploy my node.js app to my production server") A nice trick, on the repo representing your deployed app, is to add an attribute which will minify all css files. See "Compress JS/CSS files on deploy using Git" My point is: if you need to trigger anything, even with grunt, you need to do so from a git commit. Paul Miller comments: You don't have to code anything. brunch build will do the linting and stuff. Just put it as git hook. That would be in a post-update hook then, with a cd to a non-bare repo in which you would: unset GIT_DIR git pull brunch build

Categories : GIT

Team City git push hangs the build
TeamCity uses cmd.exe to run your git commands. As this stackoverflow answer says, Git relies on the shell scripting, which is not available inside cmd. Try to call msysgit's bash to execute a bash script with required git commands.

Categories : GIT



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