Problems with app service ftp

Nikola Simeonov 1 Reputation point
2022-12-10T16:53:47.457+00:00

Hello I have deployed an nextJS website in an linux app service via GitHub and everything was fine until I remembered I need to upload some content to the public folder of the website.

On the 3-rd time I needed to connect to the FTP the content of site/wwwroot was only the hostingstart.html as if I haven't deployed anything while at the same time the website was up and running.

Nothing I tried fixed the issue and at some point I noticed that if I go to advanced tools and use the SSH console to navigate there I see the actual content that is supposed to be there and if use the BASH console I see again only the hosingstart.html.

Any ideas on what documentation to read, any solutions or at least suggestions where to seek one?

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,960 questions
{count} votes

1 answer

Sort by: Most helpful
  1. SnehaAgrawal-MSFT 22,706 Reputation points Moderator
    2022-12-16T09:29:33.557+00:00

    Thanks for reaching here! You may want to know that Bash is a popular text-based shell and command-language. It is the default shell included within Ubuntu and other Linux distros, and in macOS. Users type commands into a shell to execute scripts and/or run commands and tools to accomplish many tasks. Bash scripts can be used for your deployment.

    See Git example for your reference.

    Secure Shell (SSH) is commonly used to execute administrative commands remotely from a command-line terminal. App Service on Linux provides SSH support into the app container with each of the built-in Docker images used for the Runtime Stack of new web apps.

    Whether you're a Windows user, a macOS user, or a Linux user, you can easily SSH into your Web App by accessing Kudu -> Debug Console -> SSH

    Also, If you use the Bash console from Advanced Tools (Kudu) to look at environment variables, you won't see environment variables that you set using App Settings. That's because the Bash console runs in a separate context from your Web App.

    In order to see your environment variables, use SSH to access your container.

    More details: Things You Should Know: Web Apps and SSH

    Your environment variables won't appear in the Bash console.

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.