dashy template
vishalkadam47
PROOP

2 years 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

Solved

98 Replies

vishalkadam47
PROOP

2 years ago

as of now in the template its just the dashy app config gets reset each time you refresh


vishalkadam47
PROOP

2 years ago

it needs conf.yml file to store everything


2 years ago

You'll need to create a github repository and create your own dockerfile to set the configuration.

Create a file called Dockerfile


# 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


vishalkadam47
PROOP

2 years ago

building my own dockerfile i know how to but i'm looking for a way that can be used for other users too


2 years ago

ARG GIST_LINK

then curl the config in from the gist link


2 years ago

if you want it to be dynamic


vishalkadam47
PROOP

2 years ago

there are few more templates that i want to add which relates similar to dashy where config.yml is required


2 years ago

The config in github solves this for personal use


2 years ago

if you want to distribute this as a template, allowing for ingestion of a gist via railway env var is the best way


2 years ago


# 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 "$GIST_URL" ]; then \
        curl -sSL "$GIST_URL" -o ./config.yml; \
    fi

# Expose the port Dashy runs on
EXPOSE 8080

# Start Dashy
CMD ["npm", "run", "start"]

2 years ago

assuming the image has curl, otherwise apt-get install curl


2 years ago

or do you mean allowing for editing via UI?


vishalkadam47
PROOP

2 years ago

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


2 years ago

okay, yeah, so does Dashy save this to a file location?


vishalkadam47
PROOP

2 years ago

yes, it need a file mount


2 years ago

taking a step back here, whatever you want to configure in config.yml, can it not be done via environment variables?


2 years ago

He wants it to be non-dev friendly (using UI)


2 years ago

setting environment variables is non-dev friendly


vishalkadam47
PROOP

2 years ago

it can be done if its for me as i understand tech stuff but i need it for non-dev users


2 years 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

https://i.imgur.com/6iB0HcR.png


2 years ago

do these users need to change the config?


vishalkadam47
PROOP

2 years ago

dashy provides a UI way of config user don't have to go into the file

1338303736489050172

1338303736736518164


2 years ago

so then why do you want to touch the config file?


vishalkadam47
PROOP

2 years ago

if we dont attach a file as volume then from UI where does the config gets saved buddy that's my question


2 years ago

nowhere


2 years ago

these containers don't persist unless you add a volume


2 years ago

which railway supports


2 years ago

then you have been asking the wrong questions this entire time


2 years ago

simply ask fragly to update his template with a volume mounted to /app/user-data


vishalkadam47
PROOP

2 years ago

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.


2 years ago

.


2 years ago

this can be done while you wait, @Fragly can update their template too


vishalkadam47
PROOP

2 years ago

let me try manually by attaching but will that take the file or its just a folder


2 years ago

it'll store anything the application writes to that volume/subfolders within that


vishalkadam47
PROOP

2 years ago

ok i'll try and update if that works


vishalkadam47
PROOP

2 years ago

https://pastebin.com/6C6Jj0RF

Project ID

8388299f-4bde-46f2-be04-035ce30604c1


2 years ago

seems like a program issue(?)


2 years ago

kinda hard without more detailed error message


2 years ago

first off, your mount point is wrong


2 years ago

^


2 years ago

secondly, your are running out of memory, you will need to upgrade to hobby

1338310089353855036


vishalkadam47
PROOP

2 years ago

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


2 years ago

files are created in directories


vishalkadam47
PROOP

2 years ago

dashy doesnt come with any default file we need to attach a file


2 years ago

you need to create a default config file if that's the case.


2 years ago

what docs are you following?

1338310695476793375


2 years ago

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


2 years ago

1338311149099286568


2 years ago

i assume they just assume you're in the app dir


vishalkadam47
PROOP

2 years ago

not funny, I'm just trying figure out to help other users so that they can use railway too

1338311341471174780


2 years 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


vishalkadam47
PROOP

2 years ago

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


vishalkadam47
PROOP

2 years ago

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


2 years ago

a simple bump works! he may have missed the message is all


2 years ago

no one is laughing at you


vishalkadam47
PROOP

2 years ago

yes that is fine, I didnt even ask for fragly to check


2 years ago

billy has tagged in fragly, so lets step back and leave this to fragly now


vishalkadam47
PROOP

2 years ago

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


2 years ago

not laughing at you, but i realize it could be interpreted that way, my apologies


vishalkadam47
PROOP

2 years ago

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


2 years ago

lol is a common use in english texting, it does not mean you are laughing at someone


vishalkadam47
PROOP

2 years ago

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


2 years ago

you cannot include the file in the path, again, let's leave this to Fragly


2 years ago

this is definitely a problem yea


2 years ago

my bad, I'll get a volume on the template


2 years 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


2 years ago

ah I guess that's why I never added a volume 🤣

1338416722759385129


2 years ago

dashy doesn't populate the volume itself


2 years 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


2 years 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


2 years ago

at this point I'd just pr it on the repo to default-add a config lol


2 years ago

last update was 5 months ago, the project seems dead?


2 years ago

šŸ˜” that's unfortunate


2 years ago

monkey patch it is!


2 years 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


2 years ago

sounds good, thank you!


2 years 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


2 years ago

@Vishal I updated the template, you're welcome to redownload the template and it should work fine šŸŽ‰


2 years ago

and you've modified the config and redeployed without it reverting to default?


2 years ago

yessir


2 years ago

pog


vishalkadam47
PROOP

2 years ago

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.

2 years ago

^


vishalkadam47
PROOP

2 years ago

so the conf.yml will be downloaded to the volume path right


2 years ago

exactly


vishalkadam47
PROOP

2 years ago

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


2 years ago

every month


vishalkadam47
PROOP

2 years ago

ohh then, i use railway for very small app adding 5$ every-month is not useful


2 years ago

then you will not be able to deploy dashy unfortunately


vishalkadam47
PROOP

2 years ago

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


2 years ago

makes sense


2 years ago

open a new help thread for it then!


vishalkadam47
PROOP

2 years ago

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


2 years ago

on railway, volume mounts are volume mounts, we do not abuse them to mount a file


2 years ago

very poor practice imo


vishalkadam47
PROOP

2 years ago

but still thanks for the idea using env variable


2 years ago

little bit more complex than "using an env variable"


2 years ago

!s


Status changed to Solved brody • over 1 year ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...