Streamline custom project file name and add instance path

This commit is contained in:
Daniel Siepmann 2023-01-18 16:29:04 +01:00
parent ec12316dc2
commit 174bc4d446
Signed by: Daniel Siepmann
GPG key ID: 33D6629915560EF4
2 changed files with 3 additions and 2 deletions

View file

@ -62,7 +62,7 @@ with pkgs; [
# Use in conjuncion with https://github.com/autozimu/LanguageClient-neovim
# rnix-lsp
(callPackage ./packages/custom/customer-project { })
(callPackage ./packages/custom/project { })
# Communication
signal-desktop

View file

@ -24,7 +24,6 @@ writeShellApplication {
session="project-''${1/\./-/}"
# Only create session if not already exists
if ! tmux has-session -t "$session"; then
windowId=0
projectName="$1"
@ -46,6 +45,8 @@ writeShellApplication {
tmux new-session -s "$session" -n editor -d
tmux send-keys "export TYPO3_BASE=$url TYPO3_COMPOSER_AUTOLOAD=1 SOLR_HOST=localhost SOLR_PORT=8983 SOLR_SCHEME=http SOLR_CORE=core_de" C-m
tmux send-keys "export typo3DatabaseName=testing typo3DatabaseHost=localhost typo3DatabaseUsername=testing typo3DatabasePassword=testing" C-m
# TODO: Find a better way to determine instance path for acceptance tests
tmux send-keys "export INSTANCE_PATH=\"$editorPath/typo3temp/var/tests/acceptance\"" C-m
tmux send-keys " renice -n 5 \$\$" C-m
tmux send-keys " cd $editorPath" C-m
tmux send-keys C-l