mirror of
https://github.com/friendica/friendica
synced 2024-09-19 16:05:11 +00:00
07d6500700
- moved vscode launch.json to .devcontainer - added forwardPorts to devcontainer.json - create log file in postCreate.sh
29 lines
702 B
Bash
Executable file
29 lines
702 B
Bash
Executable file
#!/bin/bash
|
|
#
|
|
|
|
# Prepare the workspace files with the values from the devcontainer.env file
|
|
set -a
|
|
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
|
|
echo ">>> Symlink $DocumentRoot to $workspaceFolder"
|
|
sudo rm -rf $DocumentRoot
|
|
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
|