Open tiptenbrink opened 3 years ago
if you run your app by bootstrapping the start.ts, you need to pass the --import-map
manually, pls use cli.ts start
that will handle the import map automatically
if you run your app by bootstrapping the start.ts, you need to pass the
--import-map
manually, pls usecli.ts start
that will handle the import map automatically
Ah that makes sense. I just looked at the Deployment docs and assumed it would work the same. Maybe a good idea to add a caveat there that if using it like that you have to supply the import map manually?
When running Aleph.js in a Docker container and using a bash file with the start command as entrypoint, it no longer seems to correctly use import maps. I wanted to use Aleph.js uninstalled on the standard deno docker image and used the following command to start the server:
The server starts fine, but the import map does not work.
Here is the error:
I access the API:
root@f12a79749f84:/opt/sd# curl localhost:8080/api/status/a
(See on GitHub, the GitHub also contains the full project that this was tested on)It works fine if I just normally spin it up on my Linux machine or if I manually install Aleph on the container and then use
aleph start
.