#Moving Foundry Around

1 messages · Page 1 of 1 (latest)

shut ember
#

I spun up a thread because this one is going to take a few

idle elm
#

ok thank you

shut ember
#

So there is an easy way and a hard way

#

The easiest way is to use something like filezilla or cyberduck and use the gui to move the files you need to move around

idle elm
#

ok i have cyberduck. i tried using it before for something

#

but failed miserably

shut ember
#

Okay let's do it the messy way then

#

from your ssh screen in putty

#

type ls and show me a screen shot so I can see where we're starting from

#

Start by shutting down foundry with pm2 stop foundry

#

Then we need to make a new folder to put foundry into

idle elm
#

the folder 'amodeo' is me trying to make a new folder before

#

so that is just empty

shut ember
#

okay so we're going to remove foundry and download a new copy

#

it's the easier way

idle elm
#

it took me so long to get this up and running before. That sounds terrifying lol

shut ember
#

So lets start with this command rm -r resources/ this will prevent the bad foundry from being executed

#

I'm going to walk you through it just copy and paste my commands

#

go to this page and grab the timed link for 0.8.9 for Linux/Node.js

idle elm
#

ok

#

done

shut ember
#

now in the ssh terminal do wget -O foundryvtt.zip "PATHLINKHERE"

#

the link needs to be in quotes

#

it should take a moment and download the file

idle elm
#

ok done

shut ember
#

now type unzip foundryvtt.zip -d ~/foundry/

#

it should show all the files being extracted

idle elm
#

error

shut ember
#

You downloaded the widnows temp link instaed of the node/linux one

idle elm
#

oh shit. i see what I did

shut ember
#

You'll need to remove the badfile one second

#

run rm foundryvtt.zip

#

then go back a step and use the correct link

idle elm
#

much better

#

ok done

shut ember
#

okay now do cd foundryvtt

idle elm
#

ok

shut ember
#

we're going to verify it will start but we're not done yet

#

run node foundry/resources/app/main.js

#

it should start up foundry and say foundry is running

idle elm
#

error

shut ember
#

paste a screen shot

idle elm
shut ember
#

ah my mistake sorry

#

do node resources/app/main.js

idle elm
#

saem error

shut ember
#

type ls

#

and paste screenshot

idle elm
#

foundryvtt.zip is only thing shown

shut ember
#

ah you didn't unzip

#

unzip foundryvtt.zip -d ~/foundry/

#

we're also in the wrong folder

#

so we will swap in a moment

#

cd ~/foundry/ should get us to the right folder after that has extracted

idle elm
#

is this better?

shut ember
#

yep!
now node resources/app/main.js

#

You can use windows+shift+s to take a smaller screencap by the way

#

it auto copies the area you select to your clipboard so you can just paste into discord with control+v

idle elm
shut ember
#

Do pm2 list

#

thought we stopped foundry

idle elm
#

it sasy status stopped

shut ember
#

do ps -aux | grep node

idle elm
shut ember
#

you have node running in a screen

#

okay do screen -ls

#

and paste the screen shot

idle elm
shut ember
#

screen -r 3624

idle elm
shut ember
#

control+c

#

should give you back to a prompt

idle elm
#

yep

shut ember
#

then exit

#

should kick you back to the previous screen

idle elm
#

it clsoed putty

#

closed

shut ember
#

hmm didn't want to do that

#

open putty back up

idle elm
shut ember
#

okay ps -aux | grep node again

idle elm
shut ember
#

perfect

#

cd ~/foundry

idle elm
#

ok

shut ember
#

then node resources/app/main.js

idle elm
shut ember
#

perfect

#

okay control+c

#

Should be back to the prompt

idle elm
#

yes

shut ember
#

pm2 delete 0 do this 3 times

idle elm
#

three seperate commands or three times in one line?

shut ember
#

3 seperate times

#

we want to clear the pm2 list

#

you had 0 instances of foundry in there

idle elm
shut ember
#

after 3 times do pm2 list it should be empty

#

hmm looks like it no longer reorders lol

#

pm2 delete 1 pm2 delete 2

#

then pm2 list should be empty

idle elm
#

success

shut ember
#

Great now pm2 start "node /home/ubuntu/foundry/resources/app/main.js" --name foundry

idle elm
#

ok

shut ember
#

pm2 save

#

You should now be able to access foundry the same way you used to

#

Now the upgrade from 0.7 to 0.8 is a big one. You need to make sure you update your systems

idle elm
shut ember
#

once you load your world the first time it's going to do a migration that is going take a few. Just wait it out

idle elm
#

ok

shut ember
#

Your modules also all need updated

#

Some of the ones you used before may not be around anymore

idle elm
#

ok, thats fine

shut ember
#

You should be good to go at this point

#

so just pull up foundry and make sure

idle elm
#

wow you are amazing

#

uhoh

shut ember
#

there is 1 last thing I'd recommend on the putty window before you close it

#

what happened?

idle elm
shut ember
#

It's loading the wrong files it seems

#

press control+f5

idle elm
#

i ahvent closed putty. shoudl I?

shut ember
#

you should see foundry 0.8.9 at the bottom of the screen

idle elm
#

7.10 is what it is giving me

shut ember
#

then something is wrong

#

open putty back up

#

we deleted 0.7.10

#

can you send me your link to your game real fast?

idle elm
#

i still have putty open from before. is that bad?

shut ember
#

it shouldn't matter we stopped foundry from running

idle elm
#

just open up my world and shoot you the link?

shut ember
#

don't open your world yet

#

just shoot me the link you used to get to the admin panel

#

it wont let me login i don't have a password

#

I just want to verify it serves the correct files

idle elm
#

i am not sure what you mean, sorry

#

that?

shut ember
#

okay something is wrong

#

back to putty

idle elm
#

ok

shut ember
#

okay pm2 stop foundry

#

cd ..

idle elm
#

pm2?

shut ember
#

ya pm2 sorry

idle elm
#

ok stopped

shut ember
#

Running out of time and trying ot get you sorted before that happens

#

ls

#

pm2 delete foundry

#

cd /home/unbuntu/

#

then ls

idle elm
shut ember
#

okay that's odd cd ~/

#

then ls

idle elm
shut ember
#

okay you have a bunch of different things going on here

#

okay cd foundryvtt

#

oh wait

#

go back

#

cd ..

idle elm
#

ok

shut ember
#

rm -r foundry/

#

need to get rid of those old foundry versions

idle elm
#

ok

shut ember
#

now cd foundryvtt

#

ls

#

it should have the zip in there correct?

idle elm
#

yep

shut ember
#

unzip foundryvtt.zip

#

we're just going to put it right here

idle elm
#

ok

shut ember
#

now node resources/app/main.js

#

does it load foundry as expected?

#

and does it say it loaded foundry 0.8.9?

idle elm
shut ember
#

okay

#

control +c

#

cd ..

#

rm -r foundryvtt/

#

mkdir foundry

#

cd foundry

idle elm
#

ok so far so good

shut ember
#

ls should be empty

idle elm
#

ls

#

whoops

shut ember
#

perfect

#

okay go get your timed link again

#

make sure it is for foundry 0.8.9 and linux/node

#

wget -O foundry.zip "PASTE"

#

that is a capital O and not a 0

idle elm
shut ember
#

unzip foundry.zip

idle elm
shut ember
#

node resources/app/main.js

idle elm
shut ember
#

victory

#

control+c

#

then pwd and tell me what it outputs

idle elm
shut ember
#

okay that's what I expected

#

now pm2 start "node /home/ubuntu/foundry/resources/app/main.js" --name foundry

#

then pm2 save

idle elm
shut ember
idle elm
#

sure!

shut ember
#

run this

#
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/gpg.key' | sudo apt-key add -
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/debian.deb.txt' | sudo tee -a /etc/apt/sources.list.d/caddy-stable.list```
#

then apt-get update

#

apt-get install caddy

idle elm
shut ember
#

sudo apt-get update

#

and sudo apt-get install caddy

idle elm
shut ember
#

sudo nano /etc/caddy/Caddyfile

#

Make the file look like this

idle elm
shut ember
#

# A CONFIG SECTION FOR YOUR HOSTNAME

www.amodeothegreat.com {
    # PROXY ALL REQUEST TO PORT 30000
    reverse_proxy localhost:30000
    encode zstd gzip
}

# Refer to the Caddy docs for more information:
# https://caddyserver.com/docs/caddyfile```
idle elm
#

just copy and paste that in?

shut ember
#

Ah it looks like caddy failed in the other screen

#

yeah

#

paste that in

#

then control+x and y to save

idle elm
shut ember
#

press enter

idle elm
shut ember
#

just press control+x

#

something is wrong

#

I am out of time to trouble shoot that step but we can do it later

idle elm
#

its all good! you have helped immensely

shut ember
#

Your game is online here

#

Put an admin password on it

idle elm
#

man, if you are ever in Victoria BC I need ot buy you lunch!

shut ember
#

Ha. Glad to help

#

seriously though make sure you put a password on the admin window. Right now anyone can edit stuff

#

There you go

#

make sure you update the module and system before launching the world

idle elm
#

will do

shut ember
#

if you see me around later I can help you get caddy setup

#

I have to go make the kids dinner

idle elm
#

thank you again so much. I cant explain how much this helped. Seriously.

shut ember
#

It's a bit messy in there now

#

which is why we had a hard time

#

You had 3 versions of foundry installed 3 different ways

idle elm
#

lol

#

thats me, a horticulturalist, trying to code

shut ember
#

🤣

#

Glad you're up and running! Happy gaming!