I've read the article created by Creatio Academy https://academy.creatio.com/docs/7-17/developer/application_components/static_content_bundling/overview , but I'm confused about how to configure the content service on my local site. Can anyone explain step by step how to configure static content?
Like
Hello,
To configure the static content bundling service on your local site, you need to follow these steps:
1. Download the `contentservice.zip` archive from the provided link: [contentservice.zip](https://academy.creatio.com/sites/default/files/documents/downloads/SDK/contentservice.zip).
2. Unpack the archive to an arbitrary directory, for example, `\opt\services`.
3. Configure the necessary parameters in the `appsettings.json` file located in the `\etc\content-watcher` directory.
4. Specify the required parameters in the `.\docker-compose\*.env` file, such as `ContentServicePort` and `ContentPath`.
5. Download the required docker service images by running the command `docker-compose pull` in the directory where the configuration files are deployed, for example, `\opt\services`.
6. Start the services by running the command `docker-compose up -d`.
7. Verify that the bundling service is deployed correctly by making a GET request to the address `http://{Server IP address}:{CONTENT_SERVICE_PORT}`.
For example, `http://17.17.17.7:9999`.
You should receive a "Service is running" response.
Please note that these steps assume you have a server running a Linux OS with Docker installed and configured.
Kalymbet Anastasia,
Thank you for the answer, but my server is a Windows server, is there a way to configure Static content bundling service on Windows Server?
Thank You
Dwi Ariyanto,
1. Download the `contentservice.zip` archive from the provided link: (https://academy.creatio.com/sites/default/files/documents/downloads/SDK/contentservice.zip).
2. Extract the contents of the archive to an arbitrary directory on your Windows Server (e.g., `C:\opt\services`).
3. Open the `.\docker-compose\*.env` file in a text editor and specify the following parameters:
- `ContentServicePort`: The port where the ContentService will run.
- `ContentPath`: The container's built-in directory of sites and their contents.
4. Configure the list of sites to track using ContentWatcher.
5. Open a command prompt and navigate to the directory where the configuration files are deployed (e.g., `C:\opt\services`).
6. Run the following command to download the necessary Docker service images:
```
docker-compose pull
```
7. Start the services by running the following command:
```
docker-compose up -d
```
8. Verify that the bundling service is deployed correctly by making a GET request to the address `http://{Server IP address}:{CONTENT_SERVICE_PORT}`. Replace `{Server IP address}` with the IP address of your server and `{CONTENT_SERVICE_PORT}` with the port specified in the `.\docker-compose\*.env` file.
For example:
```
http://17.17.17.7:9999
```
If the service is deployed correctly, you will receive a "Service is running" response.
Kalymbet Anastasia,
Thank you for the answer, I don't use docker to deploy my application, is there another way?, or is there a way to install docker for creatio on a windows server?