Creating web apps with Web2py in Azure Web Apps

639 views
Skip to first unread message

Nbush

unread,
Nov 12, 2015, 4:09:36 PM11/12/15
to web2py-users
Hi all,

just want to share web2py setup Azure Web Apps.


1. Create web app on Azure Portal
2. Fork a repo web2py (github)
3. Add 4 files  to own github repository (web2py/)
look Deploy files from a repository site like BitBucket, CodePlex, Dropbox, GitHub, or Mercurial. 
Azure creates an association with the selected repository, and pulls in the files from the specified branch. After this process completes, the Deployment section of your web app's blade will show an Active Deployment message that indicates deployment has succeeded.
5. Run web app on on Azure Portal

Admin password:
1.on local copy web2py - save the password in the parameters_8000.py file
2.rename parameters_8000.py parameters_443.py
3.copy parameters_443.py via FTP (link in Azure Portal) in site/wwwroot

Example: 


ptvs_virtualenv_proxy.py
requirements.txt
runtime.txt
web.config

Niphlod

unread,
Nov 12, 2015, 4:49:52 PM11/12/15
to web2py-users
+1 +1 +1 +1 
this should go in web2pyslices.com (although the venv machinery is not strictly necessary, it's a "nice to have")

Massimo Di Pierro

unread,
Nov 12, 2015, 7:46:11 PM11/12/15
to web2py-users
I do not know how long web2py slices will live. Bruno does not want to maintain it and GoDaddy is adopting their usual policy of not allowing the domain transfer (they say yes but it does not work). We need a better solution. Would you opposed to a scripts/azure/ subfolder?

Niphlod

unread,
Nov 13, 2015, 3:09:12 AM11/13/15
to web2py-users
we're working towards REDUCING scripts/anything_for_deployment because they quickly become unmaintained. 
If we start to scripts/deploy/any_cloud_provider_out_there I guess it'll suffer for the same issues.

IMHO (maybe) we should use gitbook for recipes.

Paolo Valleri

unread,
Nov 13, 2015, 12:46:13 PM11/13/15
to web2py-users
we can start using github wiki for all things in script/*

Paolo

Massimo Di Pierro

unread,
Nov 16, 2015, 1:45:55 AM11/16/15
to web2py-users
+1 for github wiki

Prasad telkikar

unread,
Jan 21, 2020, 1:55:28 AM1/21/20
to web2py-users
Hi Nbush,

I tried all the steps mentioned here, but for me, these steps are not working even for a given example.
SO link which explains my attempt and steps: https://stackoverflow.com/q/59749220/6299857

Can you please explain what I am missing over here or working example of web2py deployment on azure app service.
Reply all
Reply to author
Forward
0 new messages