-
Notifications
You must be signed in to change notification settings - Fork 1
/
relife
56 lines (40 loc) · 2.24 KB
/
relife
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
branch name branch name
safe-ocean-5719(staging copy heroku) relif_engineer(working copy github)
Q. How to pull from heroku
A. git clone [email protected]:safe-ocean-5719.git
Q. git remote -v Q. git remote -v
A.
heroku [email protected]:safe-ocean-5719.git (fetch) A.
heroku [email protected]:safe-ocean-5719.git (push) origin [email protected]:smondal/relief_eng.git (fetch)
origin [email protected]:smondal/relief_eng.git
Q. How to add relif_enginer to staging
A. safe-ocean-5719$ git remote add origin [email protected]:smondal/relief_eng.git
Here github copy added into safe-ocen-5719 so both heroku push and github
push work, priviously only heroku push was working. see upper command.
Q. copying data from github to heroku application(After every push you have to run pull command)
safe-ocean-5719$ git pull origin master
Heroku push
git push heroku master( here heroku)
Github push
git push origin master (here origin)
Q. Now run git remote -v
A
heroku [email protected]:safe-ocean-5719.git (fetch)
heroku [email protected]:safe-ocean-5719.git (push)
origin [email protected]:smondal/relief_eng.git (fetch)
origin [email protected]:smondal/relief_eng.git (push)
Q. How to copy one database content tp other database in different app.
relif_engineer$ heroku pgbackups:capture
relif_engineer$ heroku pgbackups:url b001
output ""https://s3.amazonaws.com/hkpgbackups/[email protected]/b005.dump?AWSAccessKeyId=AKIAIYZ2BP3RBVXEIZDA&Expires=1345086066&Signature=RGXNCa5GerfXmvBomw3qBC3mZjo%3D""
user@sandip:~/freeliancer/Ezra/relief-eng-staging$ heroku pgbackups:restore HEROKU_POSTGRESQL_WHITE "https://s3.amazonaws.com/hkpgbackups/[email protected]/b005.dump?AWSAccessKeyId=AKIAIYZ2BP3RBVXEIZDA&Expires=1345086066&Signature=RGXNCa5GerfXmvBomw3qBC3mZjo%3D"
Q how to see env variable
A. heroku config
Q. how to see
A. heroku ps
Q.heroku set worker set
A. heroku ps:scale web=1 worker=1
Q Log file open
A. heroku logs --tail
Q.Total number of log file see
A. heroku logs -n 1500