#Migrate Umami to Railway
131 messages · Page 1 of 1 (latest)
Project ID: N/A
👋
you have access to adminer on pikapods, so export the database from there, and then we will go from there
I don't know where that dump function is
If this function exist it should be easier
within umami's ui?
yeah where gonna have to do a database export and import
Ok
so export the database from adminer
yeah why not
its an export, its not like you can break stuff, if you do you just deploy a new umami template
this is what i used
Ok, done
you got your gzip file in hand?
yep
okay deploy that umami template i linked you, or do you want me to send it again?
is it not just one?
i have not published this https://railway.app/template/ZiHXd_
you need to deploy it from this think
Ok
the one in your screenshot deploys with postgres, we dont want that
It asks me to config things
yeah just click config and save
REady
okay let me get caught up, im doing this all myself too
Ok, I guess let's continue on Monday, I think my brain is dead for today and tomorrow I don't want to use the computer.
fair enough
Talk on Monday
sounds good
How was your weekend?
just woke up, still only on phone for now, but where did we leave off?
you had your database dump gzip file from adminer and now you have a new umami deploy on railway right?
Yes, I think I will do another dump just before I'm ready to import to make sure I have all the data
But yeah, I'm ready for the next step 🙂
yeah that makes sense, good idea
in preparation for this I have created a Adminer template for railway, go ahead and deploy that into your current project
and now I'd like to not be on a phone for the next steps, I should be on my computer in under 20 minutes, talk soon
we back
Cool I'm here
we want to remove umami's active deployment
Sorry I went to lunch break
no worries
perfect, open adminer and login to the mysql database
Server -> mysql.railway.internal:3306
Username -> MYSQLUSER
Password -> MYSQLPASSWORD
Database -> MYSQLDATABASE
you would need to use the values of those environment variables
and where are those?
in the variables tab on the mysql service
yes
then choose your gzip dump, and click execute
okay now you can go back to the railway database (in adminer) and send a screenshot
how many websites did you have in umami on pikapods
yours says zero, but click it anyway
might have done the export from pikapods wrong, show me the settings you used to do that export please
what is the size of your gziped file?
Just downloaded again and see I ripped the filename off of .sql
try to import that into the railway database again
Don't we need to clean the database off of the first import first?
shouldn't need to
show me the same thing in adminer for pikapods
would you be interested in sending me that gzip file? (in dms)
Done
looking
okay, i think i see whats happening, within railway's adminer
select p16699 from the DB dropdown in the top left
then once selected on that database, do this
then you can select the railway database again then check if the data is all there
That was it
sweet, log out of adminer, then go and redeploy umami
Shouldn't we deleted the Database: p16699 ?
sure you can drop the tables in there
Done
I'm in Sir
everything look good?
awsome
tracking code should be the same, and i assume you plan on bringing over your custom domain too, so you really shouldnt need to change any site code if my understanding is correct (i could be wrong)
Ok
Only difference I see is where the js code sits
<script async src="https://umami-production-9cc6.up.railway.app/script.js" data-website-id="08d74cce-a55f-410d-a294-15433f5a1f93"></script>
now it sits on railway
So I just rapleced the tracking code
the tracking code changed?
just this: src="https://umami-production-9cc6.up.railway.app/script.js"
data-website-id="08d74cce-a55f-410d-a294-15433f5a1f93" is the same
you arent going to use a custom domain for that?
Yes
alright then you can just change it back when you do that
can i mark this as solved?
are there any console errors when you visit a site that reports to umami?
Not sure what you mean
well when you visit your website that you have reporting to umami, are you seeing any console errors?
where would I see that?
in the browsers console logs (dev tools)
i am seeing data being sent to umami
Me too
maybe the website id did change?