#Having trouble deploying django project onto VPS

26 messages · Page 1 of 1 (latest)

mighty timber
#

Hello, this is my first time deploying a django project and my first time using the linux terminal, I am trying to deploy my django project onto a VPS but keep running into errors when typing in commands. i am not sure why this is happening but would be glad to provide additional information🧠

solid plaza
#

You're going to provide the commands and the errors you are getting for anyone to help

mighty timber
#

ok

#

i am aslo having trouble confirming the path to my key

#

i am retty new to all of this and am not sure what it exactly means

#

after typing in this command scp -i ~/.ssh/id_rsa -r <file path to project> ubuntu@:STserver.vps.local "/root/BOB" it returns : ```Warning: Identity file /root/.ssh/id_rsa not accessible: No such file or directory.
ssh: Could not resolve hostname c: Temporary failure in name resolution
Warning: Identity file /root/.ssh/id_rsa not accessible: No such file or directory.
ssh: Could not resolve hostname : Name or service not known

solid plaza
#

scp is a command on your local machine. It exists by default on mac or linux. I would guess you need to install it on Windows

mighty timber
#

what is scp?

solid plaza
#

it's a program.

mighty timber
#

and i thought that the commands that i am typing in the ssh would be ran on the server whihc is running linux in which it would already come by default

solid plaza
#

it stands for "secure copy" if I remember correctly

#

scp is the program that will copy files from your local machine to the VPS over ssh

mighty timber
#

so i need it on teh vps AND on my local macheine

solid plaza
#

just on your local machine

#

What OS are you running on your local machine?

mighty timber
#

windows 11

#

but i have a drive partition running ubuntu

#

i was running into some issues on windows so i thought i should copy some of teh files and do it from ubuntu

#

i have PuTTY installed on my windows system so shounnt i already have scp

#

i acessed teh vps through putty

solid plaza
#

IMO it will make your life easier to work with a linux based system (windows does have this now, but I don't know how to set it up)

#

scp is probably accessible from Putty, but it's been years since I used it

mighty timber
#

oh

#

so i should copy the files onto linux and then use linux to connect to the vps and do evertyhing from there