Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Enrique Capellan 40 posts 173 karma points
    May 26, 2020 @ 04:15
    Enrique Capellan
    0

    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?

  • Nicholas Westby 2054 posts 7100 karma points c-trib
    May 26, 2020 @ 04:44
    Nicholas Westby
    100

    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:

    Formulate Configuration for Paths

    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.

  • Enrique Capellan 40 posts 173 karma points
    May 26, 2020 @ 17:36
    Enrique Capellan
    1

    Thanks, it works.

Please Sign in or register to post replies

Write your reply to:

Draft