mirror of
https://github.com/PostHog/posthog.git
synced 2024-11-21 13:39:22 +01:00
PyCharm run configurations (#6026)
Adds a bunch of environment-agnostic run configurations that'll make it easier for anyone to get started on PyCharm
This commit is contained in:
parent
72880538ef
commit
06f3f3a3f3
29
.run/Celery - ClickHouse.run.xml
Normal file
29
.run/Celery - ClickHouse.run.xml
Normal file
@ -0,0 +1,29 @@
|
||||
<component name="ProjectRunConfigurationManager">
|
||||
<configuration default="false" name="Celery - ClickHouse" type="PythonConfigurationType" factoryName="Python">
|
||||
<module name="posthog" />
|
||||
<option name="INTERPRETER_OPTIONS" value="" />
|
||||
<option name="PARENT_ENVS" value="true" />
|
||||
<envs>
|
||||
<env name="PYTHONUNBUFFERED" value="1" />
|
||||
<env name="DEBUG" value="1" />
|
||||
<env name="PRIMARY_DB" value="clickhouse" />
|
||||
<env name="KAFKA_ENABLED" value="true" />
|
||||
<env name="CLICKHOUSE_SECURE" value="False" />
|
||||
<env name="KAFKA_URL" value="kafka://localhost" />
|
||||
</envs>
|
||||
<option name="SDK_HOME" value="$PROJECT_DIR$/env/bin/python" />
|
||||
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$/env/bin" />
|
||||
<option name="IS_MODULE_SDK" value="false" />
|
||||
<option name="ADD_CONTENT_ROOTS" value="true" />
|
||||
<option name="ADD_SOURCE_ROOTS" value="true" />
|
||||
<EXTENSION ID="PythonCoverageRunConfigurationExtension" runner="coverage.py" />
|
||||
<option name="SCRIPT_NAME" value="$PROJECT_DIR$/env/bin/celery" />
|
||||
<option name="PARAMETERS" value="-A posthog worker -B --scheduler redbeat.RedBeatScheduler --without-heartbeat --without-gossip --without-mingle" />
|
||||
<option name="SHOW_COMMAND_LINE" value="false" />
|
||||
<option name="EMULATE_TERMINAL" value="false" />
|
||||
<option name="MODULE_MODE" value="false" />
|
||||
<option name="REDIRECT_INPUT" value="false" />
|
||||
<option name="INPUT_FILE" value="" />
|
||||
<method v="2" />
|
||||
</configuration>
|
||||
</component>
|
25
.run/Celery - Postgres.run.xml
Normal file
25
.run/Celery - Postgres.run.xml
Normal file
@ -0,0 +1,25 @@
|
||||
<component name="ProjectRunConfigurationManager">
|
||||
<configuration default="false" name="Celery - Postgres" type="PythonConfigurationType" factoryName="Python">
|
||||
<module name="posthog" />
|
||||
<option name="INTERPRETER_OPTIONS" value="" />
|
||||
<option name="PARENT_ENVS" value="true" />
|
||||
<envs>
|
||||
<env name="PYTHONUNBUFFERED" value="1" />
|
||||
<env name="DEBUG" value="1" />
|
||||
</envs>
|
||||
<option name="SDK_HOME" value="$PROJECT_DIR$/env/bin/python" />
|
||||
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$/env/bin" />
|
||||
<option name="IS_MODULE_SDK" value="false" />
|
||||
<option name="ADD_CONTENT_ROOTS" value="true" />
|
||||
<option name="ADD_SOURCE_ROOTS" value="true" />
|
||||
<EXTENSION ID="PythonCoverageRunConfigurationExtension" runner="coverage.py" />
|
||||
<option name="SCRIPT_NAME" value="$PROJECT_DIR$/env/bin/celery" />
|
||||
<option name="PARAMETERS" value="-A posthog worker -B --scheduler redbeat.RedBeatScheduler --without-heartbeat --without-gossip --without-mingle" />
|
||||
<option name="SHOW_COMMAND_LINE" value="false" />
|
||||
<option name="EMULATE_TERMINAL" value="false" />
|
||||
<option name="MODULE_MODE" value="false" />
|
||||
<option name="REDIRECT_INPUT" value="false" />
|
||||
<option name="INPUT_FILE" value="" />
|
||||
<method v="2" />
|
||||
</configuration>
|
||||
</component>
|
12
.run/Frontend.run.xml
Normal file
12
.run/Frontend.run.xml
Normal file
@ -0,0 +1,12 @@
|
||||
<component name="ProjectRunConfigurationManager">
|
||||
<configuration default="false" name="Frontend" type="js.build_tools.npm">
|
||||
<package-json value="$PROJECT_DIR$/package.json" />
|
||||
<command value="run" />
|
||||
<scripts>
|
||||
<script value="start" />
|
||||
</scripts>
|
||||
<node-interpreter value="project" />
|
||||
<envs />
|
||||
<method v="2" />
|
||||
</configuration>
|
||||
</component>
|
19
.run/Plugin Server - ClickHouse.run.xml
Normal file
19
.run/Plugin Server - ClickHouse.run.xml
Normal file
@ -0,0 +1,19 @@
|
||||
<component name="ProjectRunConfigurationManager">
|
||||
<configuration default="false" name="Plugin Server - ClickHouse" type="js.build_tools.npm">
|
||||
<package-json value="$PROJECT_DIR$/plugins/package.json" />
|
||||
<command value="run" />
|
||||
<scripts>
|
||||
<script value="start" />
|
||||
</scripts>
|
||||
<node-interpreter value="project" />
|
||||
<envs>
|
||||
<env name="WORKER_CONCURRENCY" value="2" />
|
||||
<env name="DATABASE_URL" value="postgres://localhost/posthog" />
|
||||
<env name="PRIMARY_DB" value="clickhouse" />
|
||||
<env name="KAFKA_ENABLED" value="true" />
|
||||
<env name="CLICKHOUSE_SECURE" value="False" />
|
||||
<env name="KAFKA_HOSTS" value="localhost:9092" />
|
||||
</envs>
|
||||
<method v="2" />
|
||||
</configuration>
|
||||
</component>
|
15
.run/Plugin Server - Postgres.run.xml
Normal file
15
.run/Plugin Server - Postgres.run.xml
Normal file
@ -0,0 +1,15 @@
|
||||
<component name="ProjectRunConfigurationManager">
|
||||
<configuration default="false" name="Plugin Server - Postgres" type="js.build_tools.npm">
|
||||
<package-json value="$PROJECT_DIR$/plugins/package.json" />
|
||||
<command value="run" />
|
||||
<scripts>
|
||||
<script value="start" />
|
||||
</scripts>
|
||||
<node-interpreter value="project" />
|
||||
<envs>
|
||||
<env name="WORKER_CONCURRENCY" value="2" />
|
||||
<env name="DATABASE_URL" value="postgres://localhost/posthog" />
|
||||
</envs>
|
||||
<method v="2" />
|
||||
</configuration>
|
||||
</component>
|
20
.run/Plugin Server DEV - ClickHouse.run.xml
Normal file
20
.run/Plugin Server DEV - ClickHouse.run.xml
Normal file
@ -0,0 +1,20 @@
|
||||
<component name="ProjectRunConfigurationManager">
|
||||
<configuration default="false" name="Plugin Server DEV - ClickHouse" type="js.build_tools.npm">
|
||||
<package-json value="$PROJECT_DIR$/../plugin-server/package.json" />
|
||||
<command value="run" />
|
||||
<scripts>
|
||||
<script value="start:dev" />
|
||||
</scripts>
|
||||
<node-interpreter value="project" />
|
||||
<package-manager value="yarn" />
|
||||
<envs>
|
||||
<env name="WORKER_CONCURRENCY" value="1" />
|
||||
<env name="DATABASE_URL" value="postgres://localhost/posthog" />
|
||||
<env name="PRIMARY_DB" value="clickhouse" />
|
||||
<env name="KAFKA_ENABLED" value="true" />
|
||||
<env name="CLICKHOUSE_SECURE" value="False" />
|
||||
<env name="KAFKA_HOSTS" value="localhost:9092" />
|
||||
</envs>
|
||||
<method v="2" />
|
||||
</configuration>
|
||||
</component>
|
16
.run/Plugin Server DEV - Postgres.run.xml
Normal file
16
.run/Plugin Server DEV - Postgres.run.xml
Normal file
@ -0,0 +1,16 @@
|
||||
<component name="ProjectRunConfigurationManager">
|
||||
<configuration default="false" name="Plugin Server DEV - Postgres" type="js.build_tools.npm">
|
||||
<package-json value="$PROJECT_DIR$/../plugin-server/package.json" />
|
||||
<command value="run" />
|
||||
<scripts>
|
||||
<script value="start:dev" />
|
||||
</scripts>
|
||||
<node-interpreter value="project" />
|
||||
<package-manager value="yarn" />
|
||||
<envs>
|
||||
<env name="WORKER_CONCURRENCY" value="1" />
|
||||
<env name="DATABASE_URL" value="postgres://localhost/posthog" />
|
||||
</envs>
|
||||
<method v="2" />
|
||||
</configuration>
|
||||
</component>
|
31
.run/PostHog - ClickHouse.run.xml
Normal file
31
.run/PostHog - ClickHouse.run.xml
Normal file
@ -0,0 +1,31 @@
|
||||
<component name="ProjectRunConfigurationManager">
|
||||
<configuration default="false" name="PostHog - ClickHouse" type="Python.DjangoServer" factoryName="Django server">
|
||||
<module name="posthog" />
|
||||
<option name="INTERPRETER_OPTIONS" value="" />
|
||||
<option name="PARENT_ENVS" value="true" />
|
||||
<envs>
|
||||
<env name="PYTHONUNBUFFERED" value="1" />
|
||||
<env name="DJANGO_SETTINGS_MODULE" value="posthog.settings" />
|
||||
<env name="DEBUG" value="1" />
|
||||
<env name="PRIMARY_DB" value="clickhouse" />
|
||||
<env name="KAFKA_ENABLED" value="true" />
|
||||
<env name="CLICKHOUSE_SECURE" value="False" />
|
||||
<env name="KAFKA_URL" value="kafka://localhost" />
|
||||
</envs>
|
||||
<option name="SDK_HOME" value="$PROJECT_DIR$/env/bin/python" />
|
||||
<option name="WORKING_DIRECTORY" value="" />
|
||||
<option name="IS_MODULE_SDK" value="false" />
|
||||
<option name="ADD_CONTENT_ROOTS" value="true" />
|
||||
<option name="ADD_SOURCE_ROOTS" value="true" />
|
||||
<option name="launchJavascriptDebuger" value="false" />
|
||||
<option name="port" value="8000" />
|
||||
<option name="host" value="" />
|
||||
<option name="additionalOptions" value="" />
|
||||
<option name="browserUrl" value="" />
|
||||
<option name="runTestServer" value="false" />
|
||||
<option name="runNoReload" value="false" />
|
||||
<option name="useCustomRunCommand" value="false" />
|
||||
<option name="customRunCommand" value="" />
|
||||
<method v="2" />
|
||||
</configuration>
|
||||
</component>
|
27
.run/PostHog - Postgres.run.xml
Normal file
27
.run/PostHog - Postgres.run.xml
Normal file
@ -0,0 +1,27 @@
|
||||
<component name="ProjectRunConfigurationManager">
|
||||
<configuration default="false" name="PostHog - Postgres" type="Python.DjangoServer" factoryName="Django server">
|
||||
<module name="posthog" />
|
||||
<option name="INTERPRETER_OPTIONS" value="" />
|
||||
<option name="PARENT_ENVS" value="true" />
|
||||
<envs>
|
||||
<env name="PYTHONUNBUFFERED" value="1" />
|
||||
<env name="DJANGO_SETTINGS_MODULE" value="posthog.settings" />
|
||||
<env name="DEBUG" value="1" />
|
||||
</envs>
|
||||
<option name="SDK_HOME" value="$PROJECT_DIR$/env/bin/python" />
|
||||
<option name="WORKING_DIRECTORY" value="" />
|
||||
<option name="IS_MODULE_SDK" value="false" />
|
||||
<option name="ADD_CONTENT_ROOTS" value="true" />
|
||||
<option name="ADD_SOURCE_ROOTS" value="true" />
|
||||
<option name="launchJavascriptDebuger" value="false" />
|
||||
<option name="port" value="8000" />
|
||||
<option name="host" value="" />
|
||||
<option name="additionalOptions" value="" />
|
||||
<option name="browserUrl" value="" />
|
||||
<option name="runTestServer" value="false" />
|
||||
<option name="runNoReload" value="false" />
|
||||
<option name="useCustomRunCommand" value="false" />
|
||||
<option name="customRunCommand" value="" />
|
||||
<method v="2" />
|
||||
</configuration>
|
||||
</component>
|
12
.run/Storybook.run.xml
Normal file
12
.run/Storybook.run.xml
Normal file
@ -0,0 +1,12 @@
|
||||
<component name="ProjectRunConfigurationManager">
|
||||
<configuration default="false" name="Storybook" type="js.build_tools.npm">
|
||||
<package-json value="$PROJECT_DIR$/package.json" />
|
||||
<command value="run" />
|
||||
<scripts>
|
||||
<script value="storybook" />
|
||||
</scripts>
|
||||
<node-interpreter value="project" />
|
||||
<envs />
|
||||
<method v="2" />
|
||||
</configuration>
|
||||
</component>
|
Loading…
Reference in New Issue
Block a user