Skip to content

Instantly share code, notes, and snippets.

@typeoneerror
Created October 19, 2016 17:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save typeoneerror/8209fec54f7565ea7ce18ac60d40a230 to your computer and use it in GitHub Desktop.
Save typeoneerror/8209fec54f7565ea7ce18ac60d40a230 to your computer and use it in GitHub Desktop.
if (deployTarget === 'development') {
ENV['ember-cli-mirage'] = { enabled: process.env.WITH_MIRAGE || false };
}
{
"scripts": {
"mirage": "./scripts/run -m"
}
}
#!/bin/bash
echo -n -e "\033]0;Ember\007";
subdomain=""
mirage=""
while getopts d:m opts; do
case $opts in
d) subdomain="DOKI_SUBDOMAIN=$OPTARG " ;;
m) mirage="WITH_MIRAGE=true " ;;
esac
done
run_command="${subdomain}${mirage}ember server"
echo "Running \"${run_command}\"..."
eval $run_command
echo -n -e "\033]0;\007";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment