Tags » Heroku

Quick guide - Heroku pg backup and restore

Hey folks,
Just a quick guide on how to perform pg backup and restore directly on heroku. take a look at below steps.

# heroku pg restore from first app
$ heroku pg:backups:capture --app sushi

# download the backup (optional)
$ heroku pg:backups:url b001 --app sushi
# in above command b001 is the ID of a backup which will be displayed on terminal once backup is done

# check the backup information
$ heroku pg:backups:info b017 --app sushi

# delete the backup (optional)
$ heroku pg:backups:delete b101 --app foo

# 2 ways to restore a backup
# 1 - within same application
$ heroku pg:backups:restore b101 DATABASE_URL --app sushi

# 2 - from one application to another application(e.g production -> staging or staging -> development)
$ heroku pg:backups:restore sushi::b101 DATABASE_URL --app sushi-staging
Ruby On Rails

Deploy your application to Heroku

Heroku allows you to run, manage, deploy your application written in Java, Node.js, PHP, Python, Closure, Go, Scala, Ruby and so on. Application is nothing but the source code written in any of these languages along with the set of dependency description. 682 more words


Django Settings for Different Environments

The Django settings module is one of the most important files in a Django web project. It contains all of the configuration for the project, both… 612 more words

Best Practices

Setting up your personal website/blog

Few things you need to decide on:

  1. Do you need a CMS(content management system)? – If you want a blog, and do not want the hassle to build it ground up, go for a cms.
  2. 553 more words

Laravel Application Deployment on Heroku

After creating heroku account run the following commands on ubuntu terminal to install Heroku CLI. 342 more words


Heroku rollback

A while ago had a problem in a production server which I used Heroku’s rollback command, which goes back to the previous push/migration.

When you run: 62 more words

Software Development