#!/usr/bin/env bash
rm -rf public/assets;
QWAITER_MOBILE_EXPORT=yes RAILS_ENV=production bundle exec rake assets:precompile;
rm -rf public/assets/cmtool;
rm -rf public/assets/jquery-ui;
rm -rf public/assets/admin;
rm -rf public/assets/waiter;
rm -rf public/assets/supplier;
rm -rf public/assets/site;
rm -rf public/assets/cartoon;
rm -rf public/assets/frames;
QWAITER_MOBILE_EXPORT=yes RAILS_ENV=production TEST_HOST=$1 bundle exec rails runner bin/build_mobile_app.rb;
