-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20 from nsbradford/hunter/add_gitpod
add auto created config file;
- Loading branch information
Showing
1 changed file
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# This configuration file was automatically generated by Gitpod. | ||
# Please adjust to your needs (see https://www.gitpod.io/docs/introduction/learn-gitpod/gitpod-yaml) | ||
# and commit this file to your remote git repository to share the goodness with others. | ||
|
||
# Learn more from ready-to-use templates: https://www.gitpod.io/docs/introduction/getting-started/quickstart | ||
|
||
tasks: | ||
- name: Restore .env.local file | ||
command: | | ||
if [ -f .env.local ]; then | ||
echo "Found .env.local in workspace" | ||
else | ||
# After making changes to .env, run this line to persist it to $TALKFORM_DOTENV | ||
# gp env TALKFORM_DOTENV="$(base64 -i .env.local | tr -d '\n')" | ||
# | ||
# Environment variables set this way are shared between all your workspaces for this repo | ||
# The lines below will read $TALKFORM_DOTENV and print a .env file | ||
echo "Restoring .env.local from an environment variable stored in GitPod" | ||
echo "${TALKFORM_DOTENV}" | base64 -d > .env.local | ||
fi | ||
- init: yarn install && yarn run build | ||
command: yarn run start | ||
|
||
|