Basically task dependencies are configured with dependsOn and mustRunAfter, but it seems that what you need can be done with simple doLast: stage.doLast { project.file('bignibou-server/build/install').deleteDir() } ...
ruby-on-rails-4,heroku,devise,sendgrid
If you switch config.raise_delivery_errors to true then you'll be able to see if there's a specific problem and work backwards from there.
ruby-on-rails,postgresql,heroku
Following the example linked by Akshay, I was able to get this working, although not exactly as I planned. First, a clarification. To add the scheduler add-on on Heroku, you have to provide your credit card number. I'm still getting my bearings with the Heroku platform and am not ready...
ruby-on-rails,ruby,ruby-on-rails-4,heroku,model
You can try this. I hope this will help. config/locales/en.yml en: activerecord: errors: messages: email: 'You can reset your password <a href="%{link}">here</a>.' In User Model. validates :email, uniqueness: { case_sensitive: false, message: I18n.t("activerecord.errors.messages.email", link: Rails.application.routes.url_helpers.new_password_reset_url) } ...
In Heroku a dyno's local file storage is not persistent (besides the git repo files obviously), so if you write a local file and the dyno restarts the file will be gone, and if you start another dyno it won't be able to "see" the file. heroku run bash starts...
ruby-on-rails,ruby,ruby-on-rails-4,heroku,environment-variables
You are confusing the Heroku environment and the local development environment, which are different and unrelated. What the heroku config:set command does is exactly the same as putting the variables in front of the command, but it is for running the application when it is deployed to Heroku. But when...
ruby-on-rails,postgresql,heroku
Postgresql comes preinstalled on Cloud9. You simply can't run bundle exec rake db:migrate though, because you have to set it up and connect to it first. Refer to the documentation here https://docs.c9.io/v1.0/docs/setting-up-postgresql on how to set it up. Also, you dont need to install postgresql to be able to deploy...
ruby-on-rails,ruby,heroku,sendgrid,add-on
Yes you can simply sign up for a SendGrid account directly and then use the SMTP details. It would look like this: config.action_mailer.delivery_method = :smtp config.action_mailer.smtp_settings = { :address => "smtp.sendgrid.net", :port => 587, :domain => 'yourdomain.com', :user_name => ENV['SENDGRID_USERNAME'], :password => ENV['SENDGRID_PASSWORD'], :authentication => 'plain', :enable_starttls_auto => true }...
Installing git in a new dir should be the best option: If your repo is already initiated, check your remotes: git remote --v $ git remote --v heroku ssh://xxxxxxxx.xxx:repo.git (fetch) heroku ssh://xxxxxxxx.xxx:repo.git (push) Check the list you have there. The first parameter, is the remote name, then you should write...
ruby,postgresql,heroku,sinatra
In your database.yml file you need to specify the correct host for the host entry. You are passing what is stored in DATABASE_URL (something like postgres://user:[email protected]:port/database) but it should just be the host. You will also need to specify a port if it isn't the default for PostgreSQL. Edit: should...
ruby-on-rails,authentication,heroku
When using the domain: :all, it looks for a tld (top-level domain) length of 1. This is fine when the domain is "localhost" on your local machine but breaks in the real world. I would recommend moving this code to an environment specific config file: config/environments/(development|production).rb Here you can use...
Try this. cd <your-hubot-project-dir> npm uninstall hubot-heroku-keepalive --save Then find and remove the line that contains "hubot-heroku-keepalive" from file "external-scripts.json". Run "bin/hubot" again....
If the *.jar files are pulled in as dependencies then the patterns in the .slugignore file will not remove them. When you push your code to Heroku with git push heroku master the following happens: Checkout the most recent git commit (HEAD) Discard files in .slugignore Build project, including download...
It is very common to run with SQLite in development and test and a different database like PostgreSQL in production. Rails makes it easy to do this. In your Gemfile, you can use groups to specify which gems should be installed in each environment. So, in this scenario, your gemfile...
See https://devcenter.heroku.com/articles/custom-domains: $ heroku domains:add example.com Adding example.com to example... done ...
ruby-on-rails,postgresql,ruby-on-rails-4,amazon-web-services,heroku
To download backup b004 use the following syntax: curl -o b004.dump `heroku pg:backups public-url b004` That will download the backup as b004.dump in the current directory....
ruby-on-rails,git,heroku,sqlite3
In your Gemfile group :production do gem 'pg', '0.17.1' gem 'rails_12factor', '0.0.2’ end and also remove gem 'sqlite3' OR group :development, :test do gem 'sqlite3' end Because heroku can't install the sqlite3 gem. But you can tell bundler that it shouldn't be trying to except when developing. Then run bundle...
ruby-on-rails,inheritance,heroku
You're trying to redefine the Theme and the Setting model. In your app/models/item.rb you define them as inherited from Item class and in the app/models/theme.rb and app/models/setting.rb you define them to inherit from ActiveRecord::Base directly. You can see this error only in the heroku (probably production) environment because in dev...
Same thing happened with me. As far as I can remember, the reason for this is the port you used in the application. Heroku will not run your app on port 8080 or 3000, instead it will be some random port. Use this code to fix the problem. var port...
ruby-on-rails,ruby,ruby-on-rails-3,memory,heroku
That log excert is from a one off dyno, a la heroku run console - this is entirely seperate to your web dynos which you may be runnning 2x dyno's for. You need to specifiy --size=2x in your heroku run command to have the one off process use 2x dynos.
mongodb,heroku,express,elasticsearch,bonsai-elasticsearch
Here is the answer by Bonsai support: - You could always set up a script with a curl command to index the MongoDB collections, then use cron to run the script at regular intervals. - You could also use an Elasticsearch client to index collections in some cases. So I...
python,django,heroku,django-south,heroku-postgres
The problem was solved via running heroku config:set ON_HEROKU=1. In my settings.py file, I used sqlite3 locally, but reverted to postgres when on Heroku. Setting ON_HEROKU to 1 before running syncdb, hence, solved the problem for me.
Specified 'sqlite3' for database adapter, but the gem is not loaded. Add gem 'sqlite3' to your Gemfile (and ensure its version is at the minimum required by ActiveRecord). Add gem 'sqlite3', group: :development to your Gemfile and do bundle install. And also you should be putting pg gem in...
javascript,heroku,deployment,meteor
You can use the meteor buildpack from https://github.com/jordansissel/heroku-buildpack-meteor Do this in your meteor app's directory on your local machine: Create a git commit git init git add . git commit -m "Initial commit" Create an instance: heroku create --buildpack https://github.com/jordansissel/heroku-buildpack-meteor.git Configure your app: heroku addons:create mongolab:sandbox heroku config:add MONGO_URL=<insert_value_of_MONGOLAB_URI_here> heroku...
No, this is not possible. Your app will automatically sleep when it doesn't get any requests for 30 minutes, and will be awaken if a request comes in. If you have exceeded your daily quota, the app will just not be awaken.
You can use Heroku SBT plugin https://devcenter.heroku.com/articles/deploying-scala-and-play-applications-with-the-heroku-sbt-plugin . This may be a preferred approach for applications that take a long time to compile, or that need to be deployed from a Continuous Integration server such as Travis CI or Jenkins.
postgresql,heroku,import,copy,export
Building on my comment about to/from stdout/stdin, and answering the actual question about including multiple tables in one file; you can construct the output file to interleave copy ... from stdin with actual data and load it via psql. For example, psql will support input files that look like this:...
ruby-on-rails,database,postgresql,heroku,partial
In addition to Steve's quite correct answer, you also have the option of connecting using psql to the DATABASE_URL and using \copy, e.g. $ psql "$(heroku config:get DATABASE_URL)" mydb=> \copy mytable TO 'mytable.csv' WITH (FORMAT CSV, HEADER) mydb=> \copy (SELECT col1, col2 FROM mytable2 WHERE ...) TO 'mytable2_partial.csv' WITH (FORMAT...
Your migration file named should correspond to AddWeightToExercises. It should be accordingly xxxxxxxx_add_weight_to_exercises, where xxxxxxx corresponds to a particular timestamp.
PostgreSQL is case-sensitive. So x and X are different You should use select * from "X"...
That means there's no master branch. Rename your default branch to master or check your branch name and it should work.
ruby-on-rails,database,postgresql,heroku,navicat
It seems like your db permissions have been mangled. Do you have PgAdmin III installed? http://www.pgadmin.org/download/ PgAdmin III will let you reset all db and user parameters. It will also allow you to see what is going on in your database(s) and tables so you can debug them. It's a...
Used WhiteNoise to collectstaticfiles. Thanks for helping. https://devcenter.heroku.com/articles/django-assets for documentation. ...
java,heroku,java-server,java-websocket
I am answering my own question to share how I've managed to connect to Java websocket server on Heroku. Create your web socket server using Java , the implementation is up to you , you can use javax or Jetty websockets or TooTallNate-Java-Websockets , I've used Jetty. Here is my...
ruby-on-rails,ruby,amazon-web-services,heroku,amazon-s3
With Heroku you don’t have a single app running, rather you have several dynos each with a copy of your code and running some aspect of your app, and each independent from the others. In particular each dyno’s file system is separate from the others. In your case you push...
ruby,postgresql,heroku,connection-pooling,rack
Puma is threaded so you need a thread safe pool of connections to PostgreSQL, otherwise concurrent requests will all use the same connection concurrently, which is unexpected. Please have a look to the connection_pool gem. It should help....
node.js,heroku,ftp,static-ip-address
You can use a fork of the node-ftp package to do this but it isn't in NPM so requires a bit of manual install. Clone the repo locally: git clone [email protected]:choonyme/node-socksftp.git Copy the socksftp directory in to your project directory (e.g. cp -r node-socksftp/socksftp ./node_modules/ export your QuotaGuard Static connection...
I found the way out,this is my new code: var express = require('express'); var app = express(); app.set('port', (process.env.PORT || 5000)); app.use(express.static(__dirname + '/public')); app.get('/', function(request, response) { response.send('Hello World!'); }); var bodyParser = require('body-parser'); var WEBHOOK_SECRET = "62DZWMCCFFHTTQ44CG3WUQ94CTT7GAAN"; app.post('/telerivet/webhook', bodyParser.urlencoded({ extended: true }),function(req, res) { var secret = req.body.secret;...
python,session,heroku,flask,gunicorn
Got the solved with some external help, mainly by changing the secret key to use a random string I came up with, instead of os.urandom(24) Changing to server side redis sessions helped too, if only by making testing simpler...
Here is the deal, we had application.css that somehow ignored the errors in other .scss files on precompile, so we had assets precompiled on local but couldn't precompile them on heroku. I decided to rename application.css to application.css.scss and now when I was running assets:precompile task I got errors the...
Heroku no longer needs to use the git protocol & Public/Private encryption keys, instead you can use the following command to use your Heroku API key heroku login This command creates (or updates) a ~/.netrc file with your Heroku API key. Now, any Heroku remote repository can be pushed to...
database,heroku,add-on,heroku-postgres
So after talking with Heroku, I actually getting my database back. I had looked through the log files and found this command had been run: $ Detach HEROKU_POSTGRESQL_COLOR Apparently the database wasn't actually removed/deleted but just disconnected from my account. They were able to locate it again and reattach it...
ruby-on-rails,ruby,heroku,background-process
This is what I use for a job that I run every night: https://devcenter.heroku.com/articles/scheduler It works really well if your job is configured as a rake task. The guide at the link shows you how to configure everything and even addresses long-running jobs....
Your ruby/compass installation on Heroku must be out of date. I had to update mine to 2.2.0 for compass to work but i am using a custom buildpack as well for Grunt-NodeJS-Compass https://github.com/devakone/heroku-buildpack-nodejs-grunt-compass You can take a look at the https://github.com/devakone/heroku-buildpack-nodejs-grunt-compass/blob/master/bin/compile file line 153 export GEM_HOME=$build_dir/.gem/ruby/2.2.0 Make sure your GEM_HOME...
I was having the same problem and finally removed the meteor-bourbon, meteor-neat, and meteor-bitters packages and added them via bower instead. Add this bower meteor package: mquandalle:bower Bower init to get your bower.json (I just put it in the root of the directory) and add your bourbon/neat/bitters dependencies. DON'T bower...
ruby-on-rails,ruby,linux,heroku,installation
You can create a alias for heroku command put below code in .bash_profile file alias heroku="/usr/bin/heroku" .bash_profile so that it's loaded each time you open a terminal. note:- You will have to reload your current terminal to have it working simply use $. .bash_profile ...
css,ruby-on-rails,twitter-bootstrap,heroku
It's difficult to say for sure using just the information in the question you posted, but my guess is you forgot to set the viewport. Quote: To ensure proper rendering and touch zooming, add the viewport meta tag to your <head>. <meta name="viewport" content="width=device-width, initial-scale=1"> ...
heroku,websocket,out-of-memory,publish-subscribe,faye
Ok, I realised the mistake. I was creating the client outside the EM.run block. Once i moved the initialization inside the EM.run block, everything was working fine....
Instead of storing user-uploaded files locally, Heroku recommends putting them on an external service like Amazon S3. You may want to use an existing library for this, e.g. KnpGaufretteBundle: Easily use Gaufrette in your Symfony projects. Gaufrette itself is "a PHP5 library that provides a filesystem abstraction layer". Amazon S3...
ruby-on-rails,heroku,gmail,actionmailer,mandrill
Neo's solution solved my problem. All I did was set the environment variables on Heroku. $ heroku config:set HEROKU_USERNAME = ... and all the other variables and that fixed it....
node.js,heroku,scalability,peerjs
There does not appear to be any currently existing signaling servers that exist using node and redis.
ruby-on-rails,postgresql,sqlite,heroku,hash
This looks to be a difference in how the pg Gem and underlying libpq driver handle typing vs. the SQLite driver, stemming from a deliberate decision by the driver developers to leave type conversion to the application framework and return everything as a string. By executing raw SQL and going...
ruby-on-rails,postgresql,heroku,sqlite3
PostgreSQL can't figure out how to order by your created_at. Suppose that you find 2 groups of (:sender_id, :receiver_id), for instance [1, 2] and [1, 3]. Now suppose that in the first group you have 2 messages, one from 1 day ago and one from 1 minute ago. And let's...
node.js,logging,heroku,express,loopbackjs
As loopback extends express, we can use body parser module. So first install "body-parser" Then add this code in serveur.js var loopback = require('loopback'); var boot = require('loopback-boot'); var app = module.exports = loopback(); var bodyParser = require('body-parser'); // parse application/x-www-form-urlencoded app.use(bodyParser.urlencoded({ extended: false })) // parse application/json app.use(bodyParser.json()) var...
If you add a custom deploy script to Codeship after the Heroku deployment step, it should run after the app is running, so you'll have database access. You have access to the heroku toolkit, so you should be able to run: heroku run --app YOUR_APP_NAME -- ./node_modules/.bin/knex migrate:latest
ruby-on-rails,ruby,database,heroku,rake
Working with Heroku support, I was not able to get this to work with the current configuration. So in the end I decided to create a database for our staging app. Imported the latest dump file from production. And ran heroku run rake db:migrate against staging. I still got the...
ruby-on-rails,postgresql,ubuntu,heroku,sqlite3
Do you have PostgreSQL installed locally? If not, that might be the reason for that (having gem 'pg' is not enough to install it locally). You will have to run sudo apt-get install postgresql postgresql-contrib to install. You do not need it installed locally to push to Heroku though...as long...
First, you should type heroku config to get your clearDB credentials. Then, you can ran this command from your terminal : mysql --host=us-cdbr-east.cleardb.com --user=xxxx --password=xxxx --reconnect heroku_xxxxxx < schema.sql...
ruby-on-rails,ssl,heroku,dnsimple
I just went through this same scenario. The certificate you see in your herokuapp is the wildcard certificate issued for *.herokuapp.com. If you want to secure a custom domain name http://my-app-name.com, you would need to purchase and install your own wildcard certificate via DNSimple. ...
DATABASE_URL is what's currently storing your second app's connection to its provisioned DB, which Heroku is kindly preventing you from deleting because there are no other references to it. First, remove the second application's DB. Anything in it will be destroyed. heroku addons:destroy heroku-postgresql:<your DB tier> --app <your second app>...
ruby-on-rails,ruby,heroku,assets
Compile assets locally To solve this chicken and egg problem with the database in deploy, do not invoke precompile in production, precompile on development machine for production prior to push. With a functional code base pushed, you can run "$heroku db:xxx" commands on Heroku. Turn off precompile assets in production.rb:...
ruby-on-rails,email,ruby-on-rails-4,heroku,sendgrid
Just use "My Website <[email protected]>" as the from value. (Yes, this is standard, and yes, ActionMailer will handle it as expected.)
I resolved it. I think, I asked incorrect question. The problem was in missing bower command installation for dependencies when deploy.
postgresql,heroku,intellij-idea,spring-boot,jhipster
It is because of this error and it has been fixed in the latest version.
This has nothing to do with TryStatic, the json file is generated during the heroku build but is not present in the final build.
python,django,heroku,gunicorn,foreman
You've confused yourself by following an unnecessarily complicated structure. You don't need that outer meraki directory, and your Procfile and requirements.txt should be in the same directory as manage.py. Then you can remove the pythonpath parameter and all should be well.
When you run heroku login command, it will write your Heroku API key to the .netrc file. If you first run sudo heroku login, then the .netrc file will be owned by the root account and not your user account. Unless you change permissions on the file using chmod a+x...
heroku,clojure,procfile,luminus
My best guess is that you need to build the project with the command lein uberjar. This sequence works: $ lein new luminus foobar Retrieving ... Generating a Luminus project. $ cd foobar $ lein uberjar Retrieving ... Compiling foobar.session Compiling foobar.layout Compiling foobar.handler Compiling foobar.routes.home Compiling foobar.core Compiling foobar.middleware...
Solved it. Put static files such as css in a separate folder such as 'mystatic' and list that folder in STATICFILES_DIRS, then run manage.py findstatic mycssfile.css to make sure it's found. Then when uploaded to Heroku collectstatic finds the file. All clear now.
Heroku is limiting your process memory, which is different from the memory allocated by the JVM. See for example: Why is my JVM process larger than max heap size?...
heroku is a read only file system. so actually you don't even write the files but just keep them in memory while in one thread. if you want to use some free storage system i recommend google drive. you'll need to do some searching of how to use that since...
ruby-on-rails,heroku,actionmailer
Forcing the environment setting with Apache's include config file to RailsEnv staging enabled helpful errors. ...
Heroku pricing is per-dyno, so essentially per-project (although a project can have more than 1 dyno). Database pricing is also per-project. Pricing is never per-account....
ruby-on-rails,ruby,heroku,amazon-cloudfront
Set the response header To enable browser caching you must set the Cache-Control and the Expires response header. Debugging tip To see your existing cache settings, use your browser's debugger. For Chrome, while on any page in your app, open the debugger and look under: It's important to see what...
Looks like that page that I am trying to post to, have country restricted IP. Thank you anyway.
ruby-on-rails,heroku,cloudflare
I had to remove the A name record in CloudFlare and replace it with a CNAME record. I also added 2 additional CNAME records: one wildcard and one for www.
The file is using upper case characters. Make sure the filename and the name in your code match in case. If the filename is really e.g. RUsure.erb then your code won’t work.
It says: run this command from an app folder. To do this you have to clone the app first. Then go into the app folder and run your command again. Or just specifiy the app via --app oldname: heroku apps:rename newname --app oldname ...
python,django,heroku,amazon-s3,boto
You can create a new field in your models, for example, image_url. class YourModel(...): image_url = models.CharField(...) # other fields When the image is uploaded/saved the first time, retrieve its URL and populate image_url field with this value. You'll need to save your model again, though. You can use this...
This is because Heroku will lazily spin up your dyno which essentially means that the first request will take ~10 seconds. If you leave your app idle for a little while Heroku will spin down your dyno. See article for full explanation https://devcenter.heroku.com/articles/dynos#dyno-sleeping...
ruby-on-rails,ruby,heroku,web-config
I had a similar problem before. All I did was add this to my config/application.rb config.assets.initialize_on_precompile = false...
heroku,continuous-deployment,codeship
Turns out that Codeship doesn't keep anything, in fact, different servers do the deployment than the testing. It seems that the best-practice here is to recreate the assets on the Heroku side with a custom buildpack, which, directly after the git pull, does the dependency installation and compiles the app...
For non-interactive login, you need to use an API key, which Heroku will read from the HEROKU_API_KEY environment variable. You can fetch the key for your account from a logged-in CLI using heroku auth:token. There's no way to avoid authentication just because you're running inside Heroku already. That would have...
javascript,angularjs,flash,heroku
Renaming my file name and the internal function inside my directive solved the problem.
facebook,heroku,oauth,callback,passport-facebook
Did you add the callback URL to the app's settings? You have to add the site URL as that in the facebook developer app settings for it to allow facebook to make callbacks to any particular website. Should be under either basic settings on site URL or advanced settings on...
ruby-on-rails,ruby,heroku,redis,sidekiq
Set REDIS_PROVIDER to the name of the env var with your Redis URL. Type this: heroku config:set REDIS_PROVIDER=REDISTOGO_URL. Restart. Explained here: https://github.com/mperham/sidekiq/wiki/Using-Redis#using-an-env-variable...
It seems to work fine for me : Server(index.js) : var express = require('express'); var app = express(); app.set('port', (process.env.PORT || 5000)); app.use(express.static(__dirname + '/public')); app.get('/', function(request, response) { response.send('Hello World!'); }); app.listen(app.get('port'), function() { console.log('Node app is running on port', app.get('port')); }); Procfile : web: node index.js Demo :...
ruby-on-rails,ruby-on-rails-4,heroku,dns
I discovered the answer. I am on Cloudflare's network. Turns out that if on their "Crypto" panel, if the SSL is set to "flexible" then you will get the redirect loop error. Had to set it to "Full".
node.js,mongodb,heroku,compose
MongoDB connection pool workflow- Every MongoClient instance has a built-in connection pool. The client opens sockets on demand to support the number of concurrent MongoDB operations your application requires. There is no thread-affinity for sockets. The client instance, opens one additional socket per server in your MongoDB topology for monitoring...
ruby-on-rails,ruby,angularjs,heroku,sqlite3
If you are using Rails to serve the API to the Angular-powered frontend in your app, there shouldn't be a problem with Heroku hosting your app. Here is a live example of an Angular/Rails app being hosted on Heroku. However, Heroku does not support SQLite. While easy to use, SQLite...
Ok I found this gem in Heroku docs. https://devcenter.heroku.com/articles/php-support#custom-compile-step. Turns out there is a way to specify a command in Composer's composer.json to run during the slug compilation. So I added "scripts": { "compile": "php yii asset assets.php config/assets-prod.php" and deployed and it generated the minified assets automatically! Whew! This...
I am assuming you are referring to the file named .env as dotenv. Every variable in that file that you need on Heroku must be defined in Heroku config vars : https://devcenter.heroku.com/articles/config-vars The .env file is an easy way to replicate the Heroku config vars locally. That way your code...
This is how I do it in my app, add the following to app.rb: helpers do include Rack::Utils alias_method :h, :escape_html end Then in your view you can do: <%= h user_input %> ...
postgresql,heroku,heroku-postgres
You can use curl to download the backup using the public-url, e.g. curl -o appname.dump `heroku pg:backups public-url --app appname` Then you can use the Postgres pg_restore utility to restore the backup to your local database, e.g.: pg_restore --verbose --clean --no-acl --no-owner -h localhost -U appuser -d appname appname.dump (substitute...
ruby-on-rails,ruby,heroku,migration
You're using a change method rather than an up, which you should only do for the subset of migrations that rails can reverse automatically. You should change the change method to up, and add a down method that can reverse the effects of the up method....
The way to have specific settings on Heroku is to use environment variables, which you can set via the web interface or heroku set, and use them on your settings file to override the defaults like this: MY_SETTING = os.environ.get('MY_ENV_VAR', 'my_default') ...
ruby-on-rails,ruby,git,postgresql,heroku
Your error logs yield: Missing `secret_token` and `secret_key_base` for 'production' environment, set these values in `config/secrets.yml` (RuntimeError) You can resolve this issue by adding config/secrets.yml to version control, and then deploying again (explained in detail here: How to solve error "Missing `secret_key_base` for 'production' environment" on Heroku (Rails 4.1))...
html5,mobile,heroku,responsive-design,viewport
A few details you could check. (1) Rewrite the head of your page as below: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"> <title>Notify</title> <link rel="stylesheet" type="text/css" href="./app.css"> <link rel="stylesheet" type="text/css" href="./bootstrap.css"> </head> <body> </body> </html> Note that I've declared the doctype, charset,...