#Moving Foundry Around
1 messages · Page 1 of 1 (latest)
ok thank you
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
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
it took me so long to get this up and running before. That sounds terrifying lol
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
The official website and community for Foundry Virtual Tabletop.
go to this page and grab the timed link for 0.8.9 for Linux/Node.js
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
ok done
now type unzip foundryvtt.zip -d ~/foundry/
it should show all the files being extracted
You downloaded the widnows temp link instaed of the node/linux one
oh shit. i see what I did
You'll need to remove the badfile one second
run rm foundryvtt.zip
then go back a step and use the correct link
okay now do cd foundryvtt
ok
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
error
paste a screen shot
saem error
foundryvtt.zip is only thing shown
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
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
it sasy status stopped
do ps -aux | grep node
screen -r 3624
yep
okay ps -aux | grep node again
ok
then node resources/app/main.js
yes
pm2 delete 0 do this 3 times
3 seperate times
we want to clear the pm2 list
you had 0 instances of foundry in there
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
Great now pm2 start "node /home/ubuntu/foundry/resources/app/main.js" --name foundry
ok
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
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
ok
Your modules also all need updated
Some of the ones you used before may not be around anymore
ok, thats fine
there is 1 last thing I'd recommend on the putty window before you close it
what happened?
i ahvent closed putty. shoudl I?
you should see foundry 0.8.9 at the bottom of the screen
7.10 is what it is giving me
then something is wrong
open putty back up
we deleted 0.7.10
can you send me your link to your game real fast?
i still have putty open from before. is that bad?
it shouldn't matter we stopped foundry from running
just open up my world and shoot you the link?
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
ya pm2 sorry
ok stopped
Running out of time and trying ot get you sorted before that happens
ls
pm2 delete foundry
cd /home/unbuntu/
then ls
okay you have a bunch of different things going on here
okay cd foundryvtt
oh wait
go back
cd ..
ok
ok
yep
ok
now node resources/app/main.js
does it load foundry as expected?
and does it say it loaded foundry 0.8.9?
ok so far so good
ls should be empty
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
unzip foundry.zip
node resources/app/main.js
okay that's what I expected
now pm2 start "node /home/ubuntu/foundry/resources/app/main.js" --name foundry
then pm2 save
While we're here do you want me to help you make it so you can use www.amodeothegreat.com instead of amodeothegreat.com:30000?
sure!
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
# 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```
just copy and paste that in?
Ah it looks like caddy failed in the other screen
yeah
paste that in
then control+x and y to save
press enter
just press control+x
something is wrong
I am out of time to trouble shoot that step but we can do it later
its all good! you have helped immensely
man, if you are ever in Victoria BC I need ot buy you lunch!
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
will do
if you see me around later I can help you get caddy setup
I have to go make the kids dinner
thank you again so much. I cant explain how much this helped. Seriously.