If Heruku fails to build and complains about:

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

you may Google and find the ThoughtBot article which suggests:

Even after running the command, the build size didn’t get reduced at all.

Instead, the Heroku official answer has the CORRECT command:

What confused me was the CLI documentation about heroku repo:purge_cache is

This will delete the contents of the build cache stored in the repository.

while heroku builds:cache:purge doc says:

purge the build cache for the specified app

But only the latter does its job well.

Originally published at https://blog.junjizhi.com.

Introduction

Recently I have been playing with Vue (2.x) and using it to build a search bar. The UI looks a bit like this:

My goal is to render the search results in different tabs. Each tab is a different representation of the same results (tables, charts, etc.). …

Source: undraw.co

Default to current timestamp (It works in Postgres and MySQL)

Result:

Postgres specific syntax

This is because Postgres supports both function or constant…

Junji Zhi

Senior Software Engineer

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store