dhiaayachi / temporal

Temporal service
https://docs.temporal.io
MIT License
0 stars 0 forks source link

How can I start temporal server with development.yaml? #281

Open dhiaayachi opened 2 months ago

dhiaayachi commented 2 months ago

I‘m new to temporal. I see in docus that Temporal Cluster starts with "temporal server start-dev". So if there are any keys can I start the temporal server with files like development.yaml in the config folder in the command line?Any answer would be appreciated.

dhiaayachi commented 1 month ago

Thanks for your question!

You can start the Temporal server with a file like development.yaml in the config folder by using the --config flag, for example:

temporal server start-dev --config development.yaml

To learn more about the Temporal server and its options, refer to the Temporal CLI documentation: https://docs.temporal.io/cli/server

dhiaayachi commented 1 month ago

Thanks for reaching out!

You can start the Temporal server using configuration files in the config folder. You can provide the file name like development.yaml using the --config flag.

For example, to start the Temporal server using the configuration file development.yaml in the config folder, you can run the following command:

temporal server start-dev --config config/development.yaml

You can find more information about configuring the Temporal server in our configuration reference.

Let me know if you have any other questions!

dhiaayachi commented 1 month ago

Thanks for the question! While Temporal CLI allows for launching the server with custom configuration files, it does not currently support the use of development.yaml or any specific file names like that.

To work around this limitation, you can create a config folder in your project root. Inside the config folder, create a new YAML file with the necessary configuration. For example, you can create development.yaml with the desired settings.

When you run temporal server start-dev, you can then specify the path to this custom YAML file using the -c flag:

temporal server start-dev -c config/development.yaml

This will launch Temporal Server with the configuration provided in development.yaml.

We appreciate your feedback and will consider adding support for custom config file names in future Temporal CLI releases!