Question about moving code to product from local or development server.

45 views
Skip to first unread message

Chen Xu

unread,
Jun 7, 2014, 4:51:29 PM6/7/14
to django...@googlegroups.com
I am building a django website, and wondering what is an easy way to move all of my code to production, is there a tool for doing that, or maybe write my own script?


Thanks

--
⚡ Chen Xu

Adam Stein

unread,
Jun 7, 2014, 8:05:29 PM6/7/14
to django...@googlegroups.com
I use Fabric (http://www.fabfile.org/), which bills itself as a Python library and command line tool for streamlining the use of SSH for application deployment or systems administration tasks.  No need to invent your own.
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CACac-qY8nbj6uiPyvkorvARAqZ%2Bej7rAty_CtdkHnz5bXBKBKQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

-- 
Adam (ad...@csh.rit.edu)

Ilya Kazakevich

unread,
Jun 9, 2014, 8:09:10 AM6/9/14
to django...@googlegroups.com
Hello,

There are a lot of ways to do that: from simple "rsync" or "checkout periodically with cron" (in both cases you need to move your settings to environment vars) to engines like Fabric.
Even books are written: (http://continuousdelivery.com/)


Ilya Kazakevich,
JetBrains PyCharm (Best Python/Django IDE)
http://www.jetbrains.com/pycharm/
"Develop with pleasure!"
>--
>You received this message because you are subscribed to the Google Groups
>"Django users" group.
>To unsubscribe from this group and stop receiving emails from it, send an email to
>django-users...@googlegroups.com.
>To post to this group, send email to django...@googlegroups.com.
>Visit this group at http://groups.google.com/group/django-users.
>To view this discussion on the web visit
>https://groups.google.com/d/msgid/django-users/CACac-qY8nbj6uiPyvkorvARAq
>Z%2Bej7rAty_CtdkHnz5bXBKBKQ%40mail.gmail.com
><https://groups.google.com/d/msgid/django-users/CACac-qY8nbj6uiPyvkorvARA
>qZ%2Bej7rAty_CtdkHnz5bXBKBKQ%40mail.gmail.com?utm_medium=email&ut
>m_source=footer> .

Johannes Schneider

unread,
Jun 10, 2014, 3:15:26 AM6/10/14
to django...@googlegroups.com
you can use 'Fabric' to deploy your code. But In this case you still
have to write some parts on your own.

https://pypi.python.org/pypi/Fabric/

bg,
Johannes
> --
> You received this message because you are subscribed to the Google
> Groups "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to django-users...@googlegroups.com
> <mailto:django-users...@googlegroups.com>.
> To post to this group, send email to django...@googlegroups.com
> <mailto:django...@googlegroups.com>.
> <https://groups.google.com/d/msgid/django-users/CACac-qY8nbj6uiPyvkorvARAqZ%2Bej7rAty_CtdkHnz5bXBKBKQ%40mail.gmail.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout.


--
Johannes Schneider
Webentwicklung
johannes....@galileo-press.de
Tel.: +49.228.42150.xxx

Galileo Press GmbH
Rheinwerkallee 4 - 53227 Bonn - Germany
Tel.: +49.228.42.150.0 (Zentrale) .77 (Fax)
http://www.galileo-press.de/

Geschäftsführer: Tomas Wehren, Ralf Kaulisch, Rainer Kaltenecker
HRB 8363 Amtsgericht Bonn

Phang Mulianto

unread,
Jun 10, 2014, 4:02:32 AM6/10/14
to django-users
Hi there,

The easy way just copy /transfer your code to your production server manually.

To more automate the process, you can use some script .

To more advanced and not repeating your self, you can use fabric and create a deployment script for your project.
After finish this effort , your fabric will be reusable in other project. You would like to automate and simplfy the workflow to upload your production and can be repeated easily.

Fabric is more python for deployment.

Regards,

Mulianto
http://muliantophang.blogspot.com


On Tue, Jun 10, 2014 at 3:11 PM, Johannes Schneider <johannes....@galileo-press.de> wrote:
you can use 'Fabric' to deploy your code. But In this case you still have to write some parts on your own.

https://pypi.python.org/pypi/Fabric/

bg,
Johannes



On 07.06.2014 22:50, Chen Xu wrote:
I am building a django website, and wondering what is an easy way to
move all of my code to production, is there a tool for doing that, or
maybe write my own script?


Thanks

--
⚡ Chen Xu ⚡

--
You received this message because you are subscribed to the Google
Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send

To post to this group, send email to django...@googlegroups.com


--
Johannes Schneider
Webentwicklung
johannes.schneider@galileo-press.de

Tel.: +49.228.42150.xxx

Galileo Press GmbH
Rheinwerkallee 4 - 53227 Bonn - Germany
Tel.: +49.228.42.150.0 (Zentrale) .77 (Fax)
http://www.galileo-press.de/

Geschäftsführer: Tomas Wehren, Ralf Kaulisch, Rainer Kaltenecker
HRB 8363 Amtsgericht Bonn
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.

Tomas Ehrlich

unread,
Jun 10, 2014, 4:13:06 AM6/10/14
to django...@googlegroups.com
Hi there,
since all have already mentioned Fabric, take a look at Ansible which
is a bit more sophisticated tool, but can be used efficiently even for
small setups.

Depends on your requirements, you can create simple "deployment"
playbook, which just takes your code, push it to the server, update
database, static files (and/or locales) and restarts wsgi. However,
if you need to setup whole server, Ansible is perfect tool for that.
But that would be beyond the scope of this question.


Cheers,
Tom

Dne Sat, 7 Jun 2014 16:50:58 -0400
Chen Xu <xuch...@gmail.com> napsal(a):
signature.asc
Reply all
Reply to author
Forward
0 new messages