# Rake assets:precompile without database

**URL:** https://meta.discourse.org/t/rake-assets-precompile-without-database/126779
**Category:** Self-hosting
**Created:** [August 25, 2019, 3:50pm UTC](https://meta.discourse.org/t/rake-assets-precompile-without-database/126779 "2019-08-25T15:50:10Z")
**Posts on this page:** 1
**Showing post:** 13

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [August 25, 2019, 8:24pm UTC](https://meta.discourse.org/t/rake-assets-precompile-without-database/126779/13 "2019-08-25T20:24:11Z")

</div>

> [@matpen](#):
>
> Seems like we will need to live with a long downtime (5-6 minutes for migration and precompilation) on upgrade

No this is not the case.

> [@Faster rebuilds?](https://meta.discourse.org/t/faster-rebuilds/40341/2):
>
> If rebuild time is a huge concern to you I would strongly recommend running a dedicated data container
> 
> That way you can bootstrap while your existing site is up and running, meaning you only deal with a few seconds of outage when upgrading via launcher

Should only be “a few seconds” versus 5-6 minutes, but you need dedicated data and web containers. It depends what you want to prioritize.

Also per benchmarks rebuilding [on a fast server](https://meta.discourse.org/t/how-much-is-discourse-affected-by-a-faster-cpu/58407/37) should be ~3 minutes.

---

_[View the full topic](https://meta.discourse.org/t/rake-assets-precompile-without-database/126779)._
