Maybe yes, but that is a bad developping habit... If you destroy your
prod/staging server what you do then?
What you could do is having a local copy that you push into prod/staging
when you tag a version in your vcs. You can use Fabric to automated your
deployment. The only thing you have to do a try/except for the db
connection string like this :
try:
if request.env.http_host.split(':')[1] == '8005':
raise error # To use shell in prod/staging environnement
elif request.env.http_host.split(':')[1] != '':
db = DAL('postgres://richard:pwd@127.0.0.1:5432/dbname',
migrate_enabled=False,
lazy_tables=True
)
except Exception, e:
db = DAL('postgres://richard:pwd@127.0.0.1:5432/dbname', pool_size=1,
migrate_enabled=False,
lazy_tables=True)
Richard
On Sat, Aug 2, 2014 at 7:29 AM, Giovanni Marchetto marche...@newos.it
wrote:
I've a question about developing web2py app on remote server with Pycharm.
I've a professional license for Pycharm and a VPS where web2py run on port
8000. It is possible with Pycharm to developing the application using
directly web2py server VPS? Thanks a lot.
Giovanni
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
web2py-users group.
To unsubscribe from this group and stop receiving emails from it, send an
email to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
web2py-users group.
To unsubscribe from this group and stop receiving emails from it, send an email
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.