last day (14 days later) » 

7:31 AM
1
A: how to upload django app on VPS with cent os

Raja SimonBroad question short answer. Setup git in your project and create the bare repo in your VPS and using that as remote url and push your local changes and and make clone for prod and dev. VPS: git init --bare your-project your remote url is user@<ip>:/home/user/your-project local: git r...

 
I am using pycharm in local, I done "git init --bare myprojectname"
 
but I prefer command line...
 
what shod i do after git init --bare your-project??
 
you dont have to do anything.... in your local machine try git clone user@<ip>:/home/user/your-project
 
ok, so after git init --bare your-project on Vps, how to upload my django local app on Vps?
Hi
 
7:31 AM
hm.. think like bare repo is your server repo....
 
thanks for your time
 
like github
so everytime you created on github repo you will get one url ... like github.com/rajasimon/begin
so in our case
git clone user@<ip>:/home/user/your-project
I wrote one blog about this ...
 
i should write this for my Vps or in local terminal?
 
in your local terminal ...
wait
 
thank you but the link failed
 
7:34 AM
open your django project
 
yes
 
then issue this command
git remote add origin user@<ip>:/home/user/your-project
 
done
 
now issue this
git push origin master
any errors ?
 
wait please
yes error
error: src refspec master does not match any.
 
7:38 AM
oh ko...
okay issue git status what says ?
 
error: failed to push some refs to myuser@<myip>:/home/user/my-project
 
can you add and commit and push again ?
 
i done again but the error is that your-project is exist already
 
oh... now what happen.. I dont know. .but can you make clone your vps repo in your local machine ?
 

last day (14 days later) »