![]() Go to the Azure portal to manage the app you created.įrom the left menu, click App Services, and then click the name of your Azure app. Updates to the data schema leave existing data intact. If you added any tasks, they are retained in the database. Once the git push is complete, navigate to the Azure app and test the new functionality. Generate a new migration that adds a boolean column called Done to the Tasks table: In the terminal, navigate to the root of the Git repository. In this step, you make a simple change to the task data model and the webapp, and then publish the update to Azure.įor the tasks scenario, you modify the application so that you can mark a task as complete. :::image type="content" source="./media/tutorial-ruby-postgres-app/ruby-postgres-in-azure.png" alt-text="Screenshot of the Azure app example titled Tasks showing tasks added to the list.":::Ĭongratulations, you're running a data-driven Ruby on Rails app in Azure App Service. Remote: Running custom deployment command.īrowse to and add a few tasks to the list. ![]() Remote: Preparing deployment for commit id 'a5e076db9c'. At the bottom of the file, replace the production variables with the following code.ĭuring deployment, Azure App Service communicates its progress with Git. In the repository, open config/database.yml. In this step, you connect the Ruby on Rails application to the Postgres database you created in Azure Database for PostgreSQL. For production apps, put your database and your app in the same location. You can get the regions available to your subscription with the az account list-locations command. location, can be set to any one of the Azure regions. You'll use them later to connect your app to the database. They show the database user that's created for you, with the username root and password Sampledb1. When the command finishes, find the output lines that being with Ran Database Query. You can do all the steps separately with other az postgres commands and psql, but az postgres up does all of them in one step for you.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |