build.sh for phoenix