framesurge / perseus

A state-driven web development framework for Rust with full support for server-side rendering and static generation.
https://framesurge.sh/perseus/en-US
MIT License
2.18k stars 89 forks source link

When trying to run a perseus app with docker, it gets: `Error: asset './dist/render_conf.json' not found in store` #284

Closed dessalines closed 1 year ago

dessalines commented 1 year ago

This issue is reporting a bug in the code of Perseus. Details of the scope will be available in issue labels. The author described their issue as follows:

When trying to run a perseus app with docker, it gets: Error: asset './dist/render_conf.json' not found in store

The steps to reproduce this issue are as follows:

Sample dockerfile: https://git.torrents-csv.ml/heretic/torrents-csv-ui-perseus/src/branch/main/Dockerfile

Running ./server gives the error:

Error: asset './dist/render_conf.json' not found in store

A minimum reproducible example is available at <>.

Tribble internal data dHJpYmJsZS1yZXBvcnRlZCxDLWJ1ZyxBLWRlcGxveW1lbnQsYXV0aG9yLXdpbGxpbmctdG8taW1wbA==
dessalines commented 1 year ago

Another question... Is there a way to "test" deployment binaries? The above image takes hours to build, and it'd be nice to be able to test a deployment without all the optimizations.

dessalines commented 1 year ago

Nevermind, the entire pkg folder needs to be copied.