mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-12-02 21:02:26 +03:00
Upgrade the development run scripts (also add Restart and Stop)
This commit is contained in:
parent
6172e5e6c0
commit
cec830041c
5 changed files with 37 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
|||
<component name="ProjectRunConfigurationManager">
|
||||
<configuration default="false" name="Build" type="ShConfigurationType">
|
||||
<option name="SCRIPT_TEXT" value="docker exec -it $(basename "$PWD")-php-fpm-1 npm run build" />
|
||||
<option name="SCRIPT_TEXT" value="if [ -z "$(docker compose ls | grep $(basename "$PWD"))" ]; then docker stop $(docker ps -a -q) && docker network prune -f && docker compose up -d --force-recreate && docker exec -it $(basename "$PWD")-php-fpm-1 npm run build; else docker exec -it $(basename "$PWD")-php-fpm-1 npm run build; fi " />
|
||||
<option name="INDEPENDENT_SCRIPT_PATH" value="true" />
|
||||
<option name="SCRIPT_PATH" value="" />
|
||||
<option name="SCRIPT_OPTIONS" value="" />
|
||||
|
|
17
.run/Restart.run.xml
Normal file
17
.run/Restart.run.xml
Normal file
|
@ -0,0 +1,17 @@
|
|||
<component name="ProjectRunConfigurationManager">
|
||||
<configuration default="false" name="Restart" type="ShConfigurationType">
|
||||
<option name="SCRIPT_TEXT" value="docker stop $(docker ps -a -q) && docker network prune -f && docker compose up -d --force-recreate && docker exec -it $(basename "$PWD")-php-fpm-1 npm start" />
|
||||
<option name="INDEPENDENT_SCRIPT_PATH" value="true" />
|
||||
<option name="SCRIPT_PATH" value="" />
|
||||
<option name="SCRIPT_OPTIONS" value="" />
|
||||
<option name="INDEPENDENT_SCRIPT_WORKING_DIRECTORY" value="true" />
|
||||
<option name="SCRIPT_WORKING_DIRECTORY" value="$PROJECT_DIR$" />
|
||||
<option name="INDEPENDENT_INTERPRETER_PATH" value="true" />
|
||||
<option name="INTERPRETER_PATH" value="/bin/zsh" />
|
||||
<option name="INTERPRETER_OPTIONS" value="" />
|
||||
<option name="EXECUTE_IN_TERMINAL" value="true" />
|
||||
<option name="EXECUTE_SCRIPT_FILE" value="false" />
|
||||
<envs />
|
||||
<method v="2" />
|
||||
</configuration>
|
||||
</component>
|
|
@ -1,6 +1,6 @@
|
|||
<component name="ProjectRunConfigurationManager">
|
||||
<configuration default="false" name="SSH" type="ShConfigurationType">
|
||||
<option name="SCRIPT_TEXT" value="docker exec -it $(basename "$PWD")-php-fpm-1 bash" />
|
||||
<option name="SCRIPT_TEXT" value="if [ -z "$(docker compose ls | grep $(basename "$PWD"))" ]; then docker stop $(docker ps -a -q) && docker network prune -f && docker compose up -d --force-recreate && docker exec -it $(basename "$PWD")-php-fpm-1 bash; else docker exec -it $(basename "$PWD")-php-fpm-1 bash; fi" />
|
||||
<option name="INDEPENDENT_SCRIPT_PATH" value="true" />
|
||||
<option name="SCRIPT_PATH" value="" />
|
||||
<option name="SCRIPT_OPTIONS" value="" />
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<component name="ProjectRunConfigurationManager">
|
||||
<configuration default="false" name="Start" type="ShConfigurationType">
|
||||
<option name="SCRIPT_TEXT" value="docker stop $(docker ps -a -q) && docker compose up -d && docker exec -it $(basename "$PWD")-php-fpm-1 npm start" />
|
||||
<option name="SCRIPT_TEXT" value="if [ -z "$(docker compose ls | grep $(basename "$PWD"))" ]; then docker stop $(docker ps -a -q) && docker network prune -f && docker compose up -d --force-recreate && docker exec -it $(basename "$PWD")-php-fpm-1 npm start; else echo "Docker compose is already running!"; fi " />
|
||||
<option name="INDEPENDENT_SCRIPT_PATH" value="true" />
|
||||
<option name="SCRIPT_PATH" value="" />
|
||||
<option name="SCRIPT_OPTIONS" value="" />
|
||||
|
|
17
.run/Stop.run.xml
Normal file
17
.run/Stop.run.xml
Normal file
|
@ -0,0 +1,17 @@
|
|||
<component name="ProjectRunConfigurationManager">
|
||||
<configuration default="false" name="Stop" type="ShConfigurationType">
|
||||
<option name="SCRIPT_TEXT" value="docker stop $(docker ps -a -q)" />
|
||||
<option name="INDEPENDENT_SCRIPT_PATH" value="true" />
|
||||
<option name="SCRIPT_PATH" value="" />
|
||||
<option name="SCRIPT_OPTIONS" value="" />
|
||||
<option name="INDEPENDENT_SCRIPT_WORKING_DIRECTORY" value="true" />
|
||||
<option name="SCRIPT_WORKING_DIRECTORY" value="$PROJECT_DIR$" />
|
||||
<option name="INDEPENDENT_INTERPRETER_PATH" value="true" />
|
||||
<option name="INTERPRETER_PATH" value="/bin/zsh" />
|
||||
<option name="INTERPRETER_OPTIONS" value="" />
|
||||
<option name="EXECUTE_IN_TERMINAL" value="true" />
|
||||
<option name="EXECUTE_SCRIPT_FILE" value="false" />
|
||||
<envs />
|
||||
<method v="2" />
|
||||
</configuration>
|
||||
</component>
|
Loading…
Reference in a new issue