Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

export production code compiled with tsc for docker images #1895

Closed
ludns opened this issue Nov 10, 2023 · 2 comments
Closed

export production code compiled with tsc for docker images #1895

ludns opened this issue Nov 10, 2023 · 2 comments

Comments

@ludns
Copy link
Member

ludns commented Nov 10, 2023

currently, the indexer and faucets are executed via pnpm tsx which transpiles typescript code on the fly. It's great for development, not great for production.
Ideally we should be able to bundle that to optimized javascript and execute with an optimized runtime like bun.

@holic
Copy link
Member

holic commented Nov 10, 2023

There should be prebuilt binaries in there too!

packages/store-indexer/dist/bin/postgres-indexer.js
packages/store-indexer/dist/bin/postgres-frontend.js
packages/store-indexer/dist/bin/sqlite-indexer.js
packages/faucet/dist/bin/faucet-server.js

@holic
Copy link
Member

holic commented Nov 10, 2023

fixed in #1900 and can run with bun in #1902

@holic holic closed this as completed Nov 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants