a year ago
need help with this template https://help.railway.com/templates/dashy-c5c1f947#5psh
I see that the conf.yml is not been added
check this link they say
If you're using Docker, this file can be passed in as a volume. Changes can either be made directly to this file, or done through the UI.
And i don't see any option to pass the file as volume
98 Replies
as of now in the template its just the dashy app config gets reset each time you refresh
a year ago
You'll need to create a github repository and create your own dockerfile to set the configuration.
Create a file called Dockerfile
```FROM lissy93/dashy:latest as runtime
Copy custom config file into the container
COPY ./conf.yml ./user-data/conf.yml
Expose the port Dashy runs on
EXPOSE 8080
Start Dashy
CMD ["npm", "run", "start"]
```
May need some changes, this is what I gathered from a quick doc read
And add your configuration file within conf.yml in the same repository
building my own dockerfile i know how to but i'm looking for a way that can be used for other users too
a year ago
ARG GIST_LINK
then curl the config in from the gist link
a year ago
if you want it to be dynamic
there are few more templates that i want to add which relates similar to dashy where config.yml is required
a year ago
The config in github solves this for personal use
a year ago
if you want to distribute this as a template, allowing for ingestion of a gist via railway env var is the best way
a year ago
```FROM lissy93/dashy:latest as runtime
Accept GIST_URL as an ARG and set it as an ENV variable
ARG GIST_URL
Fetch the custom config file from GIST_URL if provided
RUN if [ -n "$GISTURL" ]; then \ curl -sSL "$GISTURL" -o ./config.yml; \
fi
Expose the port Dashy runs on
EXPOSE 8080
Start Dashy
CMD ["npm", "run", "start"]
```
a year ago
assuming the image has curl, otherwise apt-get install curl
a year ago
or do you mean allowing for editing via UI?
not looking for personal use i want to share with some other users who doesn't understand the way of configuring backend, lets say non-tech or non-developers, a normal user with no technical knowledge, so that they can just deploy using template and get access to the app then edit from the UI.
hope you understand now
a year ago
okay, yeah, so does Dashy save this to a file location?
a year ago
taking a step back here, whatever you want to configure in config.yml, can it not be done via environment variables?
a year ago
He wants it to be non-dev friendly (using UI)
a year ago
setting environment variables is non-dev friendly
it can be done if its for me as i understand tech stuff but i need it for non-dev users
a year ago
Right click your service, add a volume, and enter Dashy's file path (/app/user-data i assume).
If dashy reads/writes here, should persist.
unsure if this is available on trial plans
a year ago
do these users need to change the config?
a year ago
so then why do you want to touch the config file?
if we dont attach a file as volume then from UI where does the config gets saved buddy that's my question
a year ago
nowhere
a year ago
these containers don't persist unless you add a volume
a year ago
which railway supports
a year ago
then you have been asking the wrong questions this entire time
a year ago
simply ask fragly to update his template with a volume mounted to /app/user-data
that's why i have shared a link with
check this link they say
If you're using Docker, this file can be passed in as a volume. Changes can either be made directly to this file, or done through the UI.
a year ago
.
a year ago
this can be done while you wait, @Fragly can update their template too
let me try manually by attaching but will that take the file or its just a folder
a year ago
it'll store anything the application writes to that volume/subfolders within that
https://pastebin.com/6C6Jj0RF
Project ID8388299f-4bde-46f2-be04-035ce30604c1
a year ago
seems like a program issue(?)
a year ago
kinda hard without more detailed error message
a year ago
first off, your mount point is wrong
a year ago
^
a year ago
secondly, your are running out of memory, you will need to upgrade to hobby

i was following the dashy docs, i'll change as you say /app/user-data
but this is only volume dir mount right file mount will not work in railway
a year ago
files are created in directories
a year ago
you need to create a default config file if that's the case.
a year ago
what docs are you following?

a year ago
the docs do say conflicting things, this seems a bit messy tbf
a year ago

a year ago
i assume they just assume you're in the app dir
not funny, I'm just trying figure out to help other users so that they can use railway too

a year ago
to be fair, its fragly's template, its his job to fix it if anything is wrong, and im sure he would have no problem doing so, when he is available
I'm not asking for immediately too, if you see this ticket opened long back still fragly is not available that's why i'm trying to figure it out
i'm here for help but you are laughing at my efforts, I don't know its fragly or some one else i'm here on railway. and I'm an artist not a developer professionally, but still I'm trying to make my way into tech stuff
a year ago
a simple bump works! he may have missed the message is all
a year ago
no one is laughing at you
a year ago
billy has tagged in fragly, so lets step back and leave this to fragly now
great now you edit your message i did copy you message where you said
what docs are you follwing lol
what did you mean by LOL
but seriously buddy did you just edit 🤪 now its funny cool I'm ok now
a year ago
not laughing at you, but i realize it could be interpreted that way, my apologies
maybe you might not thought in that way but you reply did hurt me for a second. now its fine don't have to apologies
a year ago
lol is a common use in english texting, it does not mean you are laughing at someone
stuck at -Mounting volume on: /var/lib/containers/railwayapp/bind-mounts/64f3733f-466a-4879-977f-7139e8f11022/vol_lbk2ji203bhrmfoc
this time i used /app/user-data/conf.yml
a year ago
you cannot include the file in the path, again, let's leave this to Fragly
a year ago
this is definitely a problem yea
a year ago
my bad, I'll get a volume on the template
a year ago
although for passing the conf.yaml you'll need to upload the file yourself through filebrowser, I don't think I can pass existing files in volumes in a template
a year ago
ah I guess that's why I never added a volume 🤣

a year ago
dashy doesn't populate the volume itself
a year ago
i guess I could create a predeploy command or alter the existing deploy command to manually add a conf.yaml in the volume if there isn't any 🤔 that's a fat monkey-patch though and the command is going to look properly hideous
a year ago
pre-deploy command doesn't have volume access, so it would have to be done in the start command, it is a monkey patch for poorly designed software, but there's not much you can do if you want to template to work properly
a year ago
at this point I'd just pr it on the repo to default-add a config lol
a year ago
last update was 5 months ago, the project seems dead?
a year ago
😔 that's unfortunate
a year ago
monkey patch it is!
a year ago
true, or I might fork it.. <:hmMm:1106096377211138098>
I'll get on this later though just got back from uni and I'm super tired
a year ago
sounds good, thank you!
a year ago
I ended up going with a custom start command
I made it so it'll download the config from a specified service variable which by default points to Dashy's default config in GitHub
this way you can use your own premade config just by uploading it somewhere and pasting the raw-text URL into the service variable before deploying
or use the official default dashy config by not changing the variable
a year ago
@Vishal I updated the template, you're welcome to redownload the template and it should work fine 🎉
a year ago
and you've modified the config and redeployed without it reverting to default?
a year ago
yessir
a year ago
pog
i just deployed but
*******************************************************************************************
Welcome to Dashy! 🚀
Your new dashboard is now up and running with Docker
*******************************************************************************************
Using Dashy V-3.1.1. Update Check Complete
✅ Dashy is Up-to-Date
Browserslist: caniuse-lite is outdated. Please run:
npx update-browserslist-db@latest
Why you should do it regularly: https://github.com/browserslist/update-db#readme
- Building for production...
WARN A new version of sass-loader is available. Please upgrade for best experience.
error Command failed with signal "SIGKILL".
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
ERROR: "build" exited with 1.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.a year ago
^
a year ago
exactly
ok, i always had this question ? if i upgrade to hobby plan do i need to pay every-month or only when the credits are finished
a year ago
every month
ohh then, i use railway for very small app adding 5$ every-month is not useful
a year ago
then you will not be able to deploy dashy unfortunately
i was asking dashy because to understand the workflow of conf.yml this is similar to the another app which i wanted to add a template. and dashy was required for my friend
a year ago
makes sense
a year ago
open a new help thread for it then!
i used dashy on other platforms like coolify where they have an option for volume file mount (Bind mount) so i was expecting the same here at railway
a year ago
on railway, volume mounts are volume mounts, we do not abuse them to mount a file
a year ago
very poor practice imo
a year ago
little bit more complex than "using an env variable"
a year ago
!s
Status changed to Solved brody • about 1 year ago

