Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to migrate from local (mac) to production (ubuntu 12.04)?

I'm new to django and this is my first time playing with a python web application. I have everything running locally on my mac. I cloned the git repo, and installed askbot into a virtualenv. So far, so good.

But what happens when I want to push this into production on an Ubuntu server?

I'm assuming I'll install all the needed packages (like postgresql, python, virtualenv, and so on), at which point I'll create a new directory to store askbot (var/www/askbot), and sftp all my askbot files to the server. I'll then copy my local postresql database over and do a restore.

But what do I do from there? Can I pip install a requirements file to get all the decencies in my virtualenv? Do I need to run any commands on the server to get things running properly at this point?

How to migrate from local (mac) to production (ubuntu 12.04)?

I'm new to django and this is my first time playing with a python web application. I have everything running locally on my mac. I cloned the git repo, and installed askbot into a virtualenv. So far, so good.

But what happens when I want to push this into production on an Ubuntu server?

I'm assuming I'll install all the needed packages (like postgresql, python, virtualenv, and so on), at which point I'll create a new directory to store askbot (var/www/askbot), and sftp all my askbot files to the server. I'll then copy my local postresql database over and do a restore.

But what do I do from there? Can I pip install a requirements file to get all the decencies dependencies in my virtualenv? Do I need to run any commands on the server to get things running properly at this point?