How to deploy python-flask application using ansible?
There are many ways to do it. First you have to define the steps. Then use Ansible to carry out those steps or tasks.
Here's how I do it. I have written a generic role to deploy Flask apps. I have a playbook that executes the role.
1. Check out the Git repository to a source directory
2. Copy the source files to destination directory
3. Update/install Python packages in the virtual environment
4. Run DB migrations
5. Run some CLI commands
6. Restart systemd units
Sudheer Satyanarayana Gavika Information Technologies Pvt. Ltd. Mobile: 99005 07499 http://www.gavika.com
--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/684fec9b-7c19-b9dc-038f-a3450bfe984e%40techchorus.net.