Fix build.rake to use relative paths instead of absolute paths #109
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.
WHY are these changes introduced?
Fixes #108
When deploying to a production environment (on fly.io with Linux), the application encounters a
Errno::ENOENT
error related to a symlink pointing toindex.html
in thepublic/dist
directory. This symlink is generated correctly in a local Mac environment but fails in production due to its absolute path.WHAT is this pull request doing?
This pull request modifies the Rake task responsible for generating the symlinks to use relative paths instead of absolute paths. By using relative paths, the symlinks become more portable and are less likely to break when deployed in different environments. The path will not the the one of the laptop where the build was made
(If applicable, attach before/after screenshots to visually showcase the change)
Checklist
Note: once this PR is merged, it becomes a new release for this template.
README.md
file and other related documentation, if applicable