8000 Deploy pattern · Issue #23 · ajdavis/motor-blog · GitHub
[go: up one dir, main page]

Skip to content

Deploy pattern #23

Open
Open

Description

@wsantos

Sorry create this thing as an issue, but I'm wondering what pattern use for a production deploy, what you use Jesse? You blog is a git clone of master branch ? Do you suggest any pattern ?

Activity

  1. ajdavis commented on May 30, 2013

    @ajdavis
    Owner

    Yeah, I guess I could document this better.

    emptysquare.net is a Rackspace server. I made a Python 2.7 virtualenv on it, cloned Motor-Blog's master branch there, and installed its requirements.txt.

    I put a copy of motor_blog.conf.example in ~/etc/motor_blog.conf and customized it a bit.

    I put a copy of the example supervisord.conf in ~/etc as well.

    Same for nginx.conf.

    NGinx and Supervisord are started from /etc/init.d scripts.

    Supervisor runs mongod and four instances of Motor-Blog's server.py.

    Supervisor, MongoDB, and Motor-Blog are all configured to log to ~/log/.

    That's about it. The scripts in /etc/ are a good starting point. I can add my init.d scripts there too.

  2. ajdavis commented on May 30, 2013

    @ajdavis
    Owner

    Oh, supervisord is installed into its own virtualenv with pip, so the init.d script that runs it from there.

  3. ajdavis commented on May 30, 2013

    @ajdavis
    Owner

    Deployment is a hack: I ssh into emptysquare.net, git pull the latest Motor-Blog, then restart server.py with supervisorctl.

  4. wsantos commented on Jun 1, 2013

    @wsantos
    ContributorAuthor

    Thanks ajdavis.

  5. ajdavis commented on Jun 1, 2013

    @ajdavis
    Owner

    I'm actually going to keep this open until I've updated the documentation. I could be useful to people. I also want to review @bdarnell's tornado-production-skeleton for ideas.

  6. reopened this on Jun 1, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0