Coder Social home page Coder Social logo

bigbite / paddle Goto Github PK

View Code? Open in Web Editor NEW
11.0 13.0 0.0 1.21 MB

Commit to GitHub and have it automatically synced to SVN.

License: GNU General Public License v2.0

PHP 71.65% JavaScript 7.54% ApacheConf 0.16% HTML 1.01% CSS 19.63% Shell 0.01%

paddle's Introduction

Paddle

A modified Ship.

Commit to GitHub and have it automatically synced to SVN.

  • Supports maunal syncing of the latest or a specific commit.
  • Works with Github organisations.
  • Runs .paddle.sh before pushing to SVN (if it can find it within your git repository), helpful if you need to run composer or remove files etc.

Installation

If you're deploying with Peggy, it's really simple. Add it to Peggy, setup the Environment, press Deploy.

Otherwise:

On each deploy there-after:

  • composer install
  • php artisan cache:clear
  • php artisan migrate --force
  • php artisan optimize
  • sudo supervisorctl reload

Worker

You're going to need to setup a supervisor worker:

[program:paddle-queue-listener]
user=root
command=php /path/to/paddle/artisan queue:listen --tries=3 --sleep=3 --timeout=60
directory=/
stdout_logfile=/var/log/worker-paddle-queue-listener.log
redirect_stderr=true
autostart=true
autorestart=true
process_name=%(program_name)s_%(process_num)s
numprocs=5
numprocs_start=0

Cron

You're going to need to setup a cron job:

* * * * * php /path/to/paddle/artisan schedule:run 1>> /dev/null 2>&1

Environment

APP_ENV=production
APP_DEBUG=false
APP_KEY=32 Character Random String

DB_HOST=...
DB_DATABASE=...
DB_USERNAME=...
DB_PASSWORD=...

CACHE_DRIVER=file
SESSION_DRIVER=file
QUEUE_DRIVER=...

MAIL_DRIVER=...
MAIL_HOST=...
MAIL_PORT=...
MAIL_FROM_ADDRESS[email protected]
MAIL_USERNAME=...
MAIL_PASSWORD=...
MAIL_ENCRYPTION=null

WEBHOOK_SECRET=Random String
SVN_BINARY=/usr/bin/svn

GITHUB_CLIENT_ID=...
GITHUB_CLIENT_SECRET=...

SSH_KEY_PATH=null

GIT_BRANCH=master

The environment follows basica Laravel environment rules (check Laravel's documentation for more information). For instance, if you want to use Mandrill for mail you can use these keys:

MAIL_DRIVER=mandrill
MANDRILL_SECRET=...

If you wish to use Iron pull queues, then use theses keys:

QUEUE_DRIVER=iron

IRON_HOST=...
IRON_TOKEN=...
IRON_PROJECT=...
IRON_QUEUE=...

If you wish to use Beanstalkd:

QUEUE_DRIVER=beanstalkd

etc.

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.