How to configure Laravel and vue on azure web app

atta khan 0 Reputation points
2023-05-02T11:35:25.3+00:00

Hi,, i have deployed laravel and vue on azure,,,,on localhost and on shared hosting it's working fine,,,,, first thing i m using azure webapp, i have uploaded my code using ftp,,,,some how i manage the deployment,,, but i have two issue now,,,,created the sql database,,,,,but it's not working i think i need to install the odb driver in php for sql server,,,how to install that,,,,second i have install the nodejs and npm on cd home but when i restrat the server it's removed by the restart,, and i want to be thire all the time, so i can run my npm command,,,,,

Azure SQL Database
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,930 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Ryan Hill 30,281 Reputation points Microsoft Employee Moderator
    2023-05-03T04:04:25.45+00:00

    I would suggest referring to Tutorial: Build a PHP and MySQL app in Azure App Service, specifically, database.php. This example illustrates how you can configure database connections in your PHP app. The tutorial illustrates how to create your managed database instance and configure the app settings to use those database properties so that your app can establish a connection.

    You can also review the deploy.sh which literally runs a customized deployment script for your application by the platform. Here, you can establish those npm commands and package installs you may need to do. I should also note, for PHP, you really want to be running your app service on a Linux app service plan.

    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.