Copied to clipboard

Flag this post as spam?

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


  • Clint 4 posts 116 karma points
    Mar 08, 2024 @ 04:40
    Clint
    0

    The Delivery API is not enabled, no indexing will performed for the Delivery API content index

    Hello I am trying to install a local version of Umbraco via https://uskinned.net/support/how-to-download-and-install-the-latest-version-of-umbraco-cms/

    Then I want to install Uskinned via https://uskinned.net/support/how-to-download-and-install-uskinned-site-builder-with-nuget/

    I've come across as a front-end WordPress/PHP and have discovered a delightful new universe, which has tripped me up.

    I can run and build my project via the cmd dotnet run and presto I can log into Umbraco 13.2.0. (Do I have to run this cmd each time I want to fire up Umbraco in the future?)

    My core issue is in Windows Powershell I get a warning

    No umbracoApplicationUrl for service (yet), skip.

    Then my Windows Powershell stalls/stops on:

    The Delivery API is not enabled, no indexing will performed for the Delivery API content index.

    Powershell issues

    My issue is when following https://docs.umbraco.com/umbraco-cms/reference/content-delivery-api to enable the Content Delivery API I observe that my Project does not have a Startup.cs file My Project directory

    I believe that I need to address this issue before I can proceed with https://uskinned.net/support/how-to-download-and-install-uskinned-site-builder-with-nuget/

    Of course I may be wrong, but is it problematic to have a Project without a Startup.cs file?

  • Marc Goodson 2155 posts 14408 karma points MVP 9x c-trib
    Mar 14, 2024 @ 12:33
    Marc Goodson
    0

    Hi Clint

    I've started to use this Url:

    https://psw.codeshare.co.uk/

    to generate my Umbraco Install script, as it seems to stay up to date with all the latest shenanigans.

    (you don't have to pick any packages, without any picked, you can put your details into Options and click 'update script' and then what to run in the command line is generated for you.)

    When developer with Umbraco you have a couple of options, you can type Dot Net Run in the folder everytime you want to boot it up, or if you are using Visual Studio Code, you can open the Solution File (that the script above generates, and run the site from there). Some people setup a webserver on their developer machine so the site is constantly running, but it depends on what you are doing, as some things need to restart the solution to take hold, so if you use dotnet watch instead of dotnet run then it will watch the files and when you make changes in the development environment it will restart your website to take advantage etc.

    When you get those two warnings, I'm not sure they are actual errors...

    It is reporting that it is listening on https://localhost:44305, so if you now visit that url in a browser, do you get something 'Umbraco-y'? like the option to login or install or something?

    The UmbracoApplicationUrl is a setting you can use when load balancing your website across multiple instances (for now do not worry! - if it's not configured then Umbraco sets it to be the domain of whatever the first request is received, but as I don't think you've visited https://localhost:44305 yet then it won't have been set.

    As your site is new, (unless you opted to install a starter kit) then the Content Delivery API (which is a recently a new thing is by default turned off) but you don't need it on, unless you are intending to use Umbraco as a Headless endpoint to your front end wizardly?

    If so then to enable it you 'just' need to edit your appsettings.json file, under

    {
        "Umbraco": {
            "CMS": {
                "DeliveryApi": {
                    "Enabled": true
                }
            }
        }
    }
    

    why is it talking about startup.cs in the documentation? well that's because before Umbraco 13, there used to be a startup.cs and you used to have to add the AddDeliveryApi() as the first step - but you are on Umbraco 13, so you don't have a startup.cs anymore... you have a program.cs instead (why does everything keep changing!) and if you look in there you'll see the AddDeliveryApi() is registered by default... so the information there is just for people wanting to use the ContentDeliveryApi in earlier versions of Umbraco!

    phew...

    ... but if you don't intend to use it then you don't need to worry about it not being enabled!

    regards

    Marc

  • Clint 4 posts 116 karma points
    Mar 16, 2024 @ 06:59
    Clint
    100

    Cheers Marc I'm up and running

Please Sign in or register to post replies

Write your reply to:

Draft