Total Blog Views: 47
Blog Status: publish
Created By: rushabh_subodh Created at: 08-06-2021
Tags: ruby on rails heroku heroku-cli
$ heroku login -i
Please enter User Name and password, Go Into Project Directory
$ git init #Create a New repo
$ heroku create #Command to create a New application
$ git add .
$ git commit -m "First Commit"
$ git push heroku master #To deploy the local changes into Live, After Successfull Deploy A url will be genrated so we can use it.
$ heroku run rake db:migrate
$ git pull heroku master
$ heroku run rails c
$ heroku pg:backups capture
$ curl -o latest.dump `heroku pg:backups public-url`
$ PGPASSWORD=mypassword pg_dump -Fc --no-acl --no-owner -h localhost -U myuser mydb > mydb.dump
Generate a signed URL using the aws console:,aws s3 presign s3://your-bucket-address/your-object Use the raw file URL in the pg:backups restore command:
$ heroku pg:backups:restore '<SIGNED URL>' DATABASE_URL
$ heroku dyno:restart
Please provide some suggestion or ask any question
we have the “Get things executed” lifestyle at our place of work. There are not any excuses, no if’s or however’s in our dictionary. committed to navigating the ship of creativity to create cell answers, we resolve the real-lifestyles troubles of our clients and their clients. Our passion for work has won us many awards, year after 12 months.
© Copyright Shadbox. All Rights Reserved
Rate Blog :
Share on :
Do you have any blog suggestion? please click on the link