View gist:8267b84c94ac0b1214e38ff290430e73
Verifying my Blockstack ID is secured with the address 172Edr9bprjFgGJEnKujCt8vWUWmK51aya https://explorer.blockstack.org/address/172Edr9bprjFgGJEnKujCt8vWUWmK51aya |
View Facebook likes
<script type="text/javascript"> | |
FB.api('/', {id: "<%= @url_for_FB %>"} ,function(response) { | |
fb_shares = "0"; | |
if(typeof(response.shares)!=='undefined' && response.shares!=null) | |
fb_shares = response.shares; | |
$("FB_shares").update(fb_shares); | |
}); | |
</script> |
View deploy.rake
#Deploy and rollback on Heroku in staging and production | |
task :deploy_staging => ['deploy:set_staging_app', 'deploy:push', 'deploy:restart', 'deploy:tag'] | |
task :deploy_production => ['deploy:set_production_app', 'deploy:push', 'deploy:restart', 'deploy:tag'] | |
namespace :deploy do | |
PRODUCTION_APP = 'YOUR_PRODUCTION_APP_NAME_ON_HEROKU' | |
STAGING_APP = 'YOUR_STAGING_APP_NAME_ON_HEROKU' | |
task :staging_migrations => [:set_staging_app, :push, :off, :migrate, :restart, :on, :tag] | |
task :staging_rollback => [:set_staging_app, :off, :push_previous, :restart, :on] |