GithubHelp home page GithubHelp logo

metacpan-developer's Introduction

Creating and managing virtual development machines for Metacpan

We are still testing this setup...

  • Check out this repo

     git clone git://github.com/CPAN-API/metacpan-developer.git
    
  • Setup repositories

    Make a 'metacpan' directory at the same level and check out the repositories which will be shared into the virtual machine, below we are cloning the official repositories as read only - you could of course either fork any of these, or just add your own fork as a remote to push to.

     mkdir metacpan
     cd metacpan
     git clone git://github.com/CPAN-API/metacpan-puppet.git
     git clone git://github.com/CPAN-API/cpan-api.git
     git clone git://github.com/CPAN-API/metacpan-web.git
    
  • Install Vagrant (1.2.2+) and VirtualBox (4.2.12+)

      cd metacpan-developer
    
  • Start the virtual machine (first run will download our .box disk image ~920MB)

      vagrant up
    
  • Connect to the vm and run our puppet setup

      vagrant ssh
      sudo su -     (to become root)
    
  • To edit and test

    Make changes in your checked out 'metacpan' repos and restart the service or use the run.sh script for puppet

    To install any missing (newly required) perl modules, as root run

      /home/metacpan/bin/A_SCRIPT_WE_STILL_NEED_TO_WRITE
    
    • metacpan-web is the web front end
      • mounted as /home/metacpan/metacpan.org
      • service metacpan-www restart
    • cpan-api is the backend that talks to the elasticsearch
      • mounted as /home/metacpan/api.metacpan.org
      • service metacpan-api restart
    • metacpan-puppet is the sysadmin/server setup
      • mounted as /etc/puppet
      • /etc/puppet/run.sh
  • To connect to other services

    WEB: http://localhost:5001/

    API: http://localhost:5000/

    SSH: ssh -p 2222 root@localhost (password vagrant)

metacpan-developer's People

Contributors

ranguard avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.