mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2024-10-01 01:26:10 -04:00
Merge pull request #1210 from joeskeen/devcontainer-postcreate
move postCreateCommands to a separate file
This commit is contained in:
commit
46d8d7d781
@ -40,11 +40,7 @@
|
||||
"forwardPorts": [
|
||||
8080
|
||||
],
|
||||
"postCreateCommand": [
|
||||
"composer install --no-dev --optimize-autoloader",
|
||||
"sudo chmod a+x \"$(pwd)\" && sudo rm -rf /var/www/html && sudo ln -s \"$(pwd)\" /var/www/html",
|
||||
"npm install --global nyc"
|
||||
],
|
||||
"postCreateCommand": ".devcontainer/postCreateCommand.sh",
|
||||
// alternatiuve: apache2ctl start (but requires root)
|
||||
"postAttachCommand": "php -S 0.0.0.0:8080"
|
||||
}
|
||||
|
5
.devcontainer/postCreateCommand.sh
Executable file
5
.devcontainer/postCreateCommand.sh
Executable file
@ -0,0 +1,5 @@
|
||||
#!/bin/sh
|
||||
|
||||
composer install --no-dev --optimize-autoloader
|
||||
sudo chmod a+x "$(pwd)" && sudo rm -rf /var/www/html && sudo ln -s "$(pwd)" /var/www/html
|
||||
npm install --global nyc
|
Loading…
Reference in New Issue
Block a user