Bug 1049402 - Spree quickstart can connect to mysql and ends with timeout

The problem was that Spree was trying to connect to db while deploying.
'config.assets.initialize_on_precompile = false' fixed it .
Also had to update the bash syntax for the deploy script and recompile some assets.