-
-
Notifications
You must be signed in to change notification settings - Fork 326
/
.gitpod.yml
25 lines (21 loc) · 973 Bytes
/
.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
image: gitpod/workspace-postgres:2024-01-24-09-19-42
workspaceLocation: 'project'
checkoutLocation: 'project'
tasks:
- before: |
sudo cp /workspace/project/.freeCodeCamp/.bashrc ~/.bashrc
sudo cp /workspace/project/.freeCodeCamp/.psqlrc ~/.psqlrc
sudo cp /workspace/project/.freeCodeCamp/pg_hba.conf /etc/postgresql/12/main/pg_hba.conf
sudo touch /workspace/.bash_history
sudo chmod -R 777 /workspace
sudo chown -R postgres:postgres /var/lib/postgresql/12/main
command: |
sudo rm /workspace/project/CHANGELOG.md
sudo rm /workspace/project/coderoad.yaml
sudo rm /workspace/project/tutorial.json
sudo rm /workspace/project/TUTORIAL.md
pg_stop && sudo service postgresql start && echo "SELECT 'CREATE USER freecodecamp WITH CREATEDB' WHERE NOT EXISTS (SELECT FROM pg_catalog.pg_roles WHERE rolname='freecodecamp')\gexec" | psql -U postgres -X
exit
vscode:
extensions:
- CodeRoad.coderoad