Skip to content

Commit

Permalink
commit changes
Browse files Browse the repository at this point in the history
  • Loading branch information
neo773 committed Oct 18, 2023
1 parent cc7c7a5 commit 23b0df8
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .codesandbox/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
// These tasks can be run from CodeSandbox. Running one will open a log in the app.
"tasks": {
"run tailcall": {
"name": "run tailcall",
"name": "run tailcall server",
"command": "$HOME/.tailcall/bin/tc start /app/example.graphql",
"runAtStart": true,
"preview": {
"port": 8000
"port": 3000
}
}
}
Expand Down
5 changes: 3 additions & 2 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,19 @@
{
"name": "Existing Dockerfile",
"build": {
// Sets the run context to one level up instead of the .devcontainer folder.,
// Sets the run context to one level up instead of the .devcontainer folder.
// Update the 'dockerFile' property if you aren't using the standard 'Dockerfile' filename.
"dockerfile": "../Dockerfile"
}

// Features to add to the dev container. More info: https://containers.dev/features.
// "features": {},

// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],

// Uncomment the next line to run commands after the container is created.
// "postCreateCommand": "chmod +x $HOME/.tailcall/bin"
// "postCreateCommand": "cat /etc/os-release",

// Configure tool-specific properties.
// "customizations": {},
Expand Down
6 changes: 2 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,5 @@ FROM ubuntu:latest
RUN apt-get update && apt-get install -y curl jq
WORKDIR /app
COPY ./app/. /app
EXPOSE 8000
RUN curl -sSL https://raw.githubusercontent.com/tailcallhq/tailcall/main/install.sh | bash -s && \
echo 'export PATH="$HOME/.tailcall/bin:$PATH"' >> /root/.bashrc
CMD /bin/bash -c "source /root/.bashrc"
EXPOSE 3000
RUN curl -sSL https://raw.githubusercontent.com/tailcallhq/tailcall/main/install.sh | bash -s
2 changes: 1 addition & 1 deletion app/example.graphql
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
schema
@server(
port: 8000
port: 3000
baseURL: "http://jsonplaceholder.typicode.com"
enableHttpCache: true
enableGraphiql: "/graphiql"
Expand Down

0 comments on commit 23b0df8

Please sign in to comment.