2 years ago
Hi everyone,
Please help me with the Railway specific pattern of removing the trailing "#" in URLs whilst using HashRouter, because I want to switch to the cleaner BrowserRouter instead of HashRouter.
Note that I am using HashRouter because the BrowserRouter was not working on production.
<@539512869780455445> proffered a solution using a ".toml" file on another user's thread, but I can't see the thread no more.
Thanks.
115 Replies
2 years ago
share your repo?
2 years ago
its private
2 years ago
copy the nixpacks.toml and Caddyfile from this repo into yours.
if you have any build or start commands set in your service settings, remove them.
Done. I'll try it out using BrowserRouter on production and I'll get right back to you.
2 years ago
sounds good
2 years ago
awesome
2 years ago
what would those be
2 years ago
deploy it on railway
deploy it on railway
2 years ago
what problems would you be running into?
The problem is that as a PHP app, there is a server limit for file upload size
2 years ago
did you open a help station thread about that?
I can adjust the size limit on my local machine. How do I readjust it on dev
2 years ago
oh wow then someone else opened a thread in the last several hours for the same thing
2 years ago
this thread is good, no need for more threads just wonder if that thread I mentioned was you or not
2 years ago
I have an answer for both of you, but discord's search sucks so I haven't been able to find the pre-made solution just yet
2 years ago
sure! what's the issue there?
I would like to have momentary backup emailed as a mysql file to an email
2 years ago
honestly not a good idea at all
Also, how can I access the database from the more familiar background like the MySQL workbench or something similar to PHPMyAdmin?
2 years ago
you just simply use the credentials you are given when you deploy the database, nothing special
2 years ago
you can do backups with mysql workbench as far as I'm aware
I'm wondering how? Because I just recently used MySQL workbench for a DB schema
2 years ago
you are extremely overthinking this
2 years ago
you deploy the database, and use it's provided credentials in mysql workbench, I promise you there is no more to it than that
2 years ago
just make sure you have deployed the database, frontend, and backend all into the same railway project
2 years ago
will search for that when I'm back at my computer, whats the max size limit you could ever need?
2 years ago
do you?
2 years ago
there would be no way to differentiate between the two, so I'll set it to 50MB, would that be good?
2 years ago
okay, I'll get back to you on that then
And as a side note, please do not delete this thread as I could be needing it from time to time for the moment
2 years ago
we don't delete or even close threads
2 years ago
place these two files into the root of your project
2 years ago
i have sent two files
2 years ago
sounds good
2 years ago
awsome!
Also, I feel this is beyond the scope of what I should ask you; but do you know of any solution to an external image/video upload source like AWS that is free
2 years ago
you just want a place to store photos and videos?
Because if I continue storing within the server, it would bloat out the application in time
2 years ago
why not store files in a volume?
2 years ago
oh you said external
2 years ago
cloudflare r2?
2 years ago
i think the first 10gb is free, but you will need to fact check that
2 years ago
okay so whats the issue with the database?
2 years ago
there is this template, never used it myself though
2 years ago
make sure you use the private database host and port
Thanks for the help. I tried uploading files. But they won't work with the configuration I used for the Cloudflare.
However, I have another configuration I will try out tomorrow.
But I must now go to sleep, because I am up early in the morning to go to a day job.
I will give you an update within 24 hours.
2 years ago
sounds good
Still on it.
Will keep you posted.
Life problems got in the way.
Thanks for the patience.
2 years ago
no worries