-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitpod.yml
32 lines (26 loc) · 1.04 KB
/
.gitpod.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Commands to start on workspace startup
workspaceLocation: laraboot-jetstream-demo/src
tasks:
- name: Install cli
openMode: tab-after
init: npm i -g @laraboot-io/cli
command: |
readonly PHP_VERSION="8.0"
readonly PROJECT_NAME="jetstream-demo"
readonly PROJECT_HOME=$(pwd)
# Enable network communication with Docker socket.
sudo chmod 666 /var/run/docker.sock
laraboot --version
laraboot new "${PROJECT_NAME}" --php-version="${PHP_VERSION}.*" || exit 125
cd $PROJECT_NAME || exit 126
cp ../buildpack.yml .
sudo chmod -R 777 .
laraboot task add @core/laravel-foundation-provider --format=file -vvv && \
laraboot task add @core/laravel-starterkit-buildpack --format=file -vvv && \
laraboot task add nodejs --imageUri=gcr.io/paketo-buildpacks/nodejs --format=external
laraboot build --pack-params default-process=task --pack-params "env NODE_ENV=dev"
laraboot run --port=9000
# Ports to expose on workspace startup
ports:
- port: 9000
onOpen: open-preview