kopia lustrzana https://github.com/friendica/friendica
Updated dev container configuration
- moved vscode launch.json to .devcontainer - added forwardPorts to devcontainer.json - create log file in postCreate.shpull/14412/head
rodzic
dc145bb440
commit
07d6500700
|
@ -18,14 +18,21 @@
|
|||
"postCreateCommand": "bash -c '.devcontainer/postCreate.sh && .devcontainer/postCreateApacheSetup.sh && .devcontainer/postCreateFriendicaSetup.sh'",
|
||||
"postStartCommand": "service apache2 start",
|
||||
|
||||
"forwardPorts": [
|
||||
80,
|
||||
443,
|
||||
3306,
|
||||
8080
|
||||
],
|
||||
|
||||
// Configure tool-specific properties.
|
||||
"customizations": {
|
||||
"vscode": {
|
||||
"extensions": [
|
||||
"xdebug.php-debug",
|
||||
"bmewburn.vscode-intelephense-client",
|
||||
"ms-azuretools.vscode-docker",
|
||||
"donjayamanne.githistory",
|
||||
"bmewburn.vscode-intelephense-client"
|
||||
"xdebug.php-debug",
|
||||
"donjayamanne.githistory"
|
||||
],
|
||||
"settings": {
|
||||
"php.suggest.basic": false
|
||||
|
|
|
@ -32,5 +32,6 @@ return [
|
|||
'language' => 'en',
|
||||
'basepath' => '${workspaceFolder}',
|
||||
'url' => 'http://${ServerName}:${ServerPort}',
|
||||
'pidfile' => '/tmp/daemon.pid',
|
||||
],
|
||||
];
|
||||
|
|
|
@ -8,6 +8,9 @@ source $workspaceFolder/.devcontainer/.env
|
|||
echo ">>> Development Setup"
|
||||
sudo apt-get update
|
||||
|
||||
# VSCode debugger profile
|
||||
mkdir -p .vscode && cp .devcontainer/launch.json .vscode/launch.json
|
||||
|
||||
envsubst < $workspaceFolder/.devcontainer/include/my.cnf > /home/vscode/.my.cnf
|
||||
|
||||
#Make the workspace directory the docroot
|
||||
|
@ -17,4 +20,10 @@ sudo ln -fs $workspaceFolder $DocumentRoot
|
|||
|
||||
echo 'error_reporting=0' | sudo tee /usr/local/etc/php/conf.d/no-warn.ini
|
||||
|
||||
# create log file
|
||||
mkdir -p log
|
||||
touch log/friendica.log
|
||||
chmod 666 log/friendica.log
|
||||
|
||||
|
||||
exit 0
|
||||
|
|
|
@ -39,7 +39,6 @@ robots.txt
|
|||
|
||||
#Ignore config files from VSCode
|
||||
/.vscode/
|
||||
!/.vscode/launch.json
|
||||
|
||||
#ignore smarty cache
|
||||
/view/smarty3/compiled/
|
||||
|
|
Ładowanie…
Reference in New Issue