We have changed our check_url implementation from curl to wget for three reasons
- It gives us the ability to retry on connection refused. Compare the command we used previously with curl:
curl -sSfL --retry 3 URL
to the current one:
| gem 'heroku', require: false |
| #!/bin/bash | |
| heroku pgbackups:capture --expire --app YOUR_PRODUCTION_APP_NAME | |
| heroku pgbackups:restore DATABASE `heroku pgbackups:url --app YOUR_PRODUCTION_APP` --app YOUR_STAGING_APP --confirm YOUR_STAGING_APP |
| #Coveralls with Rspec and Cucumber | |
| require 'coveralls' | |
| Coveralls.wear_merged! | |
| SimpleCov.merge_timeout 3600 | |
| #MAKING SURE SIMPLECOV WORKS WITH THE PARALLEL_TESTS GEM | |
| SimpleCov.command_name "RSpec/Cucumber:#{Process.pid.to_s}#{ENV['TEST_ENV_NUMBER']}" |
| require 'coveralls' | |
| Coveralls.wear! |
| repo_token: YOUR_COVERALLS_TOKEN |
| require 'coveralls/rake/task' | |
| Coveralls::RakeTask.new |
| 'CI' => true, | |
| 'CI_BUILD_NUMBER' => id, | |
| 'CI_BUILD_URL' => project_build_url(project, self), | |
| 'CI_PULL_REQUEST' => false, | |
| 'CI_BRANCH' => branch, | |
| 'CI_COMMIT_ID' => commit_id, | |
| 'CI_COMMITTER_NAME' => name, | |
| 'CI_COMMITTER_EMAIL' => email, | |
| 'CI_COMMITTER_USERNAME' => github_username, | |
| 'CI_MESSAGE' => message, |
| mkdir casperjs1.1 | |
| cd casperjs1.1 | |
| wget https://codeload.github.com/n1k0/casperjs/legacy.zip/1.1-beta1 | |
| unzip 1.1-beta1 | |
| export PATH=~/clone/casperjs1.1/n1k0-casperjs-cd1fab5/bin:$PATH | |
| casperjs --version | |
| cd .. |
We have changed our check_url implementation from curl to wget for three reasons
curl -sSfL --retry 3 URL
to the current one:
| # Creating the EC2 Instance | |
| instance = ec2.instances.create( | |
| :image_id => "ami-7739b41e", | |
| :instance_type => 'cc2.8xlarge', | |
| :key_name => "CloudshipCreateServerKey", | |
| :instance_initiated_shutdown_behavior => 'terminate', | |
| :block_device_mappings => { | |
| "/dev/sda1" => { | |
| :volume_size => 50, |