diff --git a/projects/tailcall/run.sh b/projects/tailcall/run.sh index c25ff34..f08e600 100755 --- a/projects/tailcall/run.sh +++ b/projects/tailcall/run.sh @@ -2,8 +2,13 @@ set -e -# TODO: implement installation npm install -g @tailcallhq/tailcall -# TODO: run the server -tailcall start reference/schema.graphql \ No newline at end of file +# Get the directory of the script +SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" + +# Set the path to the schema file relative to the script location +SCHEMA_FILE="${SCRIPT_DIR}/tailcall.graphql" + +# Start Tailcall +tailcall start "${SCHEMA_FILE}" \ No newline at end of file diff --git a/reference/schema.graphql b/projects/tailcall/tailcall.graphql similarity index 100% rename from reference/schema.graphql rename to projects/tailcall/tailcall.graphql