update capfile to precompile assets. add staging environemnt.