Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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