Wednesday, 10 July 2019

GitHub/heroku clone push

How to clone project through Git Hub 
1. git clone https://github.com/dikshabittern/PostApplication.git
 ==> heroku git:clone -a appname (clone project through heroku)

    next, go to the PostApplication project
2. then, use this command=> bundle install
3. next, create a db use this cmd=> rails db:create
4. next, migrate a db => rails db:migrate

How to push code on GitHub and heroku 
 
 1. git remove -v (show Remote)
 2. git remote add origin repositary url
 3. git add . / git add file name
 4. git commit -m "message"
 5. git push origin master  / git push heroku master

create a new branch on github (git checkout -b "development")
change branch (git checkout branchname)
Merge all branch code in mail branch (git merge development)

whenever occur this error (Precompiling assets failed.) so use this code to debuging error (rake assets:precompile RAILS_ENV=production)
 



No comments:

Post a Comment

  Common Git Commands   Take clone of a repository git clone <remote-repository-url> ex: git clone  https://github.com/agricor/RegTech...