Update deploy script for new full-stack architecture. Fixes #906.