Formulate Configuration being deleted when deploy to azure
Hi, I'm using formulate for my umbraco (v8) proyect.
I'm having a problem. When I deploy my project to azure, the whole formulate configuration (forms, configuredForms, etc.) in the App_Data>Formulate>Json folder is deleted (on azure) and I need to manually deploy this folder again. Is there a way to stop it, or change where the formulate files are stored?
This seems like a deployment issue. I'm not sure if the deployment issue is with your deployment process, or with how deployments work on Azure in particular. I would recommend figuring out the issue with your deployment process to see if there is a way to retain these sorts of files (my guess being that App_Data is excluded from deployments by default, and is being wiped out for some reason).
As a workaround, you could edit your Formulate configuration to change the directory where these files reside, in case you think that might help:
This file is located at ~/App_Plugins/formulate/FormulateConfiguration.json.
As you can see, it allows you to configure both the location of the Formulate JSON files and the location where Formulate stores uploaded files.
If you do change these paths, be mindful that they may become publicly accessible so that they can be downloaded by anybody who knows the right path (which is a security problem). To avoid this problem, you might want to use a technique like this to avoid people publicly downloading files from the new folder you place them in: https://code101.net/code-101/2020/4/27/preventing-all-file-downloads-in-folder-with-webconfig-file
The first time you change these paths, you will need to manually move the files to the new locations.
Formulate Configuration being deleted when deploy to azure
Hi, I'm using formulate for my umbraco (v8) proyect. I'm having a problem. When I deploy my project to azure, the whole formulate configuration (forms, configuredForms, etc.) in the App_Data>Formulate>Json folder is deleted (on azure) and I need to manually deploy this folder again. Is there a way to stop it, or change where the formulate files are stored?
This seems like a deployment issue. I'm not sure if the deployment issue is with your deployment process, or with how deployments work on Azure in particular. I would recommend figuring out the issue with your deployment process to see if there is a way to retain these sorts of files (my guess being that
App_Data
is excluded from deployments by default, and is being wiped out for some reason).As a workaround, you could edit your Formulate configuration to change the directory where these files reside, in case you think that might help:
This file is located at
~/App_Plugins/formulate/FormulateConfiguration.json
.As you can see, it allows you to configure both the location of the Formulate JSON files and the location where Formulate stores uploaded files.
If you do change these paths, be mindful that they may become publicly accessible so that they can be downloaded by anybody who knows the right path (which is a security problem). To avoid this problem, you might want to use a technique like this to avoid people publicly downloading files from the new folder you place them in: https://code101.net/code-101/2020/4/27/preventing-all-file-downloads-in-folder-with-webconfig-file
The first time you change these paths, you will need to manually move the files to the new locations.
Thanks, it works.
is working on a reply...