5 months 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
0 Replies
as of now in the template its just the dashy app config gets reset each time you refresh
5 months 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
5 months ago
ARG GIST_LINK
then curl the config in from the gist link
5 months 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
5 months ago
The config in github solves this for personal use
5 months ago
if you want to distribute this as a template, allowing for ingestion of a gist via railway env var is the best way
5 months 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"]
```
5 months ago
assuming the image has curl, otherwise apt-get install curl
5 months 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
5 months ago
okay, yeah, so does Dashy save this to a file location?
5 months ago
taking a step back here, whatever you want to configure in config.yml, can it not be done via environment variables?
5 months ago
He wants it to be non-dev friendly (using UI)
5 months 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
5 months 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
5 months ago
do these users need to change the config?
5 months 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
5 months ago
nowhere
5 months ago
these containers don't persist unless you add a volume
5 months ago
which railway supports
5 months ago
then you have been asking the wrong questions this entire time
5 months 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.
5 months ago
.
5 months 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
5 months ago
it'll store anything the application writes to that volume/subfolders within that
https://pastebin.com/6C6Jj0RF
Project ID8388299f-4bde-46f2-be04-035ce30604c1
5 months ago
seems like a program issue(?)
5 months ago
kinda hard without more detailed error message
5 months ago
first off, your mount point is wrong
5 months ago
^
5 months 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
5 months ago
files are created in directories
5 months ago
you need to create a default config file if that's the case.
5 months ago
what docs are you following?
5 months ago
the docs do say conflicting things, this seems a bit messy tbf
5 months ago
5 months 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
5 months 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
5 months ago
a simple bump works! he may have missed the message is all
5 months ago
no one is laughing at you
5 months 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
5 months 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
5 months 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
5 months ago
you cannot include the file in the path, again, let's leave this to Fragly
5 months ago
this is definitely a problem yea
5 months ago
my bad, I'll get a volume on the template
5 months 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
5 months ago
ah I guess that's why I never added a volume š¤£
5 months ago
dashy doesn't populate the volume itself
5 months 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
5 months 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
5 months ago
at this point I'd just pr it on the repo to default-add a config lol
5 months ago
last update was 5 months ago, the project seems dead?
5 months ago
š that's unfortunate
5 months ago
monkey patch it is!
5 months 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
5 months ago
sounds good, thank you!
5 months 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
5 months ago
@Vishal I updated the template, you're welcome to redownload the template and it should work fine š
5 months ago
and you've modified the config and redeployed without it reverting to default?
5 months ago
yessir
5 months 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.
5 months ago
^
5 months 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
5 months ago
every month
ohh then, i use railway for very small app adding 5$ every-month is not useful
5 months 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
5 months ago
makes sense
5 months 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
5 months ago
on railway, volume mounts are volume mounts, we do not abuse them to mount a file
5 months ago
very poor practice imo
5 months ago
little bit more complex than "using an env variable"
5 months ago
!s
Status changed to Solved brody ⢠5 months ago