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

Is it possible to publish to Heroku despite slug size being too large? #513

Closed
chrismp opened this issue Jun 18, 2019 · 2 comments
Closed

Comments

@chrismp
Copy link

chrismp commented Jun 18, 2019

I'm trying to push more than 1.5GB worth of SQLite databases -- 535MB compressed -- to Heroku but I get this error when I run the datasette publish heroku command.

Compiled slug size: 535.5M is too large (max is 500M).

Can I publish the databases and make datasette work on Heroku despite the large slug size?

@simonw
Copy link
Owner

simonw commented Jun 18, 2019

Unfortunately not - I really wish this was possible. I have not yet found a great serverless solution for publishing 1GB+ databases - they're too big for Heroku, Cloud Run OR Zeit Now. Once databases get that big the only option I've found is to run a VPS (or an EC2 instance) with a mounted hard drive volume and execute datasette serve on that instance, with an nginx running on port 80 that proxies traffic back to Datasette.

I'd love to figure out a way to make hosting larger databases as easy as it currently is to host small ones.

@chrismp
Copy link
Author

chrismp commented Jun 18, 2019

Ah, so basically put the SQLite databases on Linode, for example, and run datasette serve on there? I'm comfortable with that.

@chrismp chrismp closed this as completed Jun 21, 2019
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