Setup one click deployment to railway #356
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What kind of change does this PR introduce?
I included two new files in the folder directory, "Dockerfile.railway" and railway.toml. I also included the template button link to the readme file to allow for a one click deploy on railway. I have tested the changes with a sample deployment on my railway dashboard to ensure the changes work as expected
Why was this change needed?
So the reason for the new file "Dockerfile.railway" was because volumes are banned in railway, so I was forced to use the inbuilt volume from railway and delete the volume declarations from the docker file. However, I didn't want to alter the main Dockerfile.dev so it doesn't affect the other one click deployment options that would be implemented later. The railway.toml file was to direct railway to the Docker file on the build instructions.
Other information:
Yes I chatted with the author of the issue for guidance while working on it. I had to also make a compromise with the VOLUME, instead of two I setup just one volume in the template which is "/upload", the reason for this is because railway doesn't allow creation of more than a single volume.
Checklist:
Put a "X" in the boxes below to indicate you have followed the checklist;