memgraph/docs/user_technical/run
Marko Budiselic d07eff9f43 Init of end user technical documentation.
Summary: Init of end user technical documentation.

Reviewers: dtomicevic, teon.banek, mferencevic

Reviewed By: dtomicevic, teon.banek

Subscribers: pullbot, buda

Differential Revision: https://phabricator.memgraph.io/D407
2017-05-31 15:38:26 +02:00

21 lines
484 B
Bash
Executable File

#!/bin/bash
working_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
# curl and php are required
if [ "$( which curl )" == "" ] || [ "$( which php )" == "" ]; then
echo "curl and php are required!"
exit 1
fi
generator="couscous.phar"
# download the generator if it's not already downloaded
if [ ! -f ${working_dir}/${generator} ]; then
cd ${working_dir}
curl -OS http://couscous.io/${generator}
fi
# run the preview
php ${working_dir}/${generator} preview