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)
==> 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
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)
How to push code on GitHub and heroku
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