Giter Site home page Giter Site logo

ci.swissuplabs.com's Introduction

ci.swissuplabs.com

Requirements

  • PHP 7.0 and newer
  • Node 6.11.2 and NPM
  • Composer
  • Git

Installation

  1. Get webhook secret and access token from github

  2. Prepare Application

    # 1. fetch the sources
    git clone [email protected]:swissup/ci.swissuplabs.com.git && cd ci.swissuplabs.com
    
    # 2. install php dependencies
    composer install
    
    # 3. prepare files and folders
    find storage bootstrap -type d -exec chmod 777 {} +
    php artisan storage:link
    
    # 4. prepare configuration
    cp .env.example .env
    php artisan key:generate
    vi .env
    
    # 5. setup application dependencies
    php artisan migrate
    php artisan app:setup
    
    # 6. install npm modules (if you are frontend developer)
    npm install
    
    # 7. run the site (skip this step if you have a ready to use webserver)
    php artisan serve
  3. Configure crontab

  4. Configure supervisor

Upgrade

# use artisan command
php artisan app:update

# or manually
php artisan down
git pull
composer install
php artisan config:clear
php artisan view:clear
php artisan cache:clear
php artisan migrate --force
php artisan app:setup
php artisan config:cache
php artisan queue:restart
php artisan up

Configure Crontab

  1. Run this command to open editor:

    crontab -e
  2. Add the following line:

    * * * * * php /path-to-your-project/artisan schedule:run >> /dev/null 2>&1

Configure Supervisor

If you would like to use database driver to process queue jobs, you need to configure supervisor.

  1. Generate config using echo_supervisord_conf script:

    echo_supervisord_conf > /path-to-your-project/supervisord.conf
  2. Add new section into it:

    [program:ci.swissuplabs.com]
    process_name=%(program_name)s_%(process_num)02d
    command=php /path-to-your-project/artisan queue:work
    autostart=true
    autorestart=true
    user=swissuplabs
    numprocs=2
    redirect_stderr=true
    stdout_logfile=/path-to-your-project/worker.log
  3. Start supervisor:

    supervisord -c /path-to-your-project/supervisord.conf
    supervisorctl reread
    supervisorctl update
    supervisorctl start ci.swissuplabs.com:*

ci.swissuplabs.com's People

Contributors

vovayatsyuk avatar 0m3r avatar

Stargazers

ToJin avatar

Watchers

Imgbot 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.