Coder Social home page Coder Social logo

peggy's People

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

peggy's Issues

Deploy Cachet

A successful deployment log should look like this:

>>> Starting Deploy�
�>>> Cloning Repo�
Cloning into '/var/www/9a-cachet-live-1444685947/releases/1444689396'...
�>>> Running deploy.json�
�>>> Running Command: composer install --no-dev -o �
Warning: This development build of composer is over 60 days old. It is recommended to update it by running "/usr/local/bin/composer self-update" to get the latest version.
Loading composer repositories with package information
Installing dependencies from lock file
  - Installing vlucas/phpdotenv (v1.1.1)
    Loading from cache

  - Installing symfony/var-dumper (v2.7.3)
    Loading from cache

  - Installing symfony/translation (v2.7.3)
    Loading from cache

  - Installing symfony/routing (v2.7.3)
    Loading from cache

  - Installing symfony/process (v2.7.3)
    Loading from cache

  - Installing symfony/http-foundation (v2.7.3)
    Loading from cache

  - Installing symfony/event-dispatcher (v2.7.3)
    Loading from cache

  - Installing psr/log (1.0.0)
    Loading from cache

  - Installing symfony/debug (v2.7.3)
    Loading from cache

  - Installing symfony/http-kernel (v2.7.3)
    Loading from cache

  - Installing symfony/finder (v2.7.3)
    Loading from cache

  - Installing symfony/dom-crawler (v2.7.3)
    Loading from cache

  - Installing symfony/css-selector (v2.7.3)
    Loading from cache

  - Installing symfony/console (v2.7.3)
    Loading from cache

  - Installing swiftmailer/swiftmailer (v5.4.1)
    Loading from cache

  - Installing nikic/php-parser (v1.4.0)
    Loading from cache

  - Installing jakub-onderka/php-console-color (0.1)
    Loading from cache

  - Installing jakub-onderka/php-console-highlighter (v0.3.2)
    Loading from cache

  - Installing dnoegel/php-xdg-base-dir (0.1)
    Loading from cache

  - Installing psy/psysh (v0.5.2)
    Loading from cache

  - Installing nesbot/carbon (1.20.0)
    Loading from cache

  - Installing mtdowling/cron-expression (v1.0.4)
    Loading from cache

  - Installing monolog/monolog (1.17.1)
    Loading from cache

  - Installing league/flysystem (1.0.11)
    Loading from cache

  - Installing jeremeamia/superclosure (2.1.0)
    Loading from cache

  - Installing doctrine/inflector (v1.0.1)
    Loading from cache

  - Installing danielstjules/stringy (1.10.0)
    Loading from cache

  - Installing classpreloader/classpreloader (2.0.0)
    Loading from cache

  - Installing laravel/framework (v5.1.16)
    Loading from cache

  - Installing psr/http-message (1.0)
    Loading from cache

  - Installing guzzlehttp/psr7 (1.2.0)
    Loading from cache

  - Installing guzzlehttp/promises (1.0.2)
    Loading from cache

  - Installing guzzlehttp/guzzle (6.0.2)
    Loading from cache

  - Installing league/commonmark (0.10.0)
    Loading from cache

  - Installing graham-campbell/markdown (v4.0.0)
    Loading from cache

  - Installing alt-three/emoji (v1.2.0)
    Loading from cache

  - Installing asm89/stack-cors (0.2.1)
    Loading from cache

  - Installing barryvdh/laravel-cors (v0.5.0)
    Loading from cache

  - Installing doctrine/lexer (v1.0.1)
    Loading from cache

  - Installing doctrine/annotations (v1.2.7)
    Loading from cache

  - Installing doctrine/cache (v1.4.2)
    Loading from cache

  - Installing doctrine/collections (v1.3.0)
    Loading from cache

  - Installing doctrine/common (v2.5.1)
    Loading from cache

  - Installing doctrine/dbal (v2.5.1)
    Loading from cache

  - Installing fideloper/proxy (3.0.0)
    Loading from cache

  - Installing graham-campbell/security (v3.2.0)
    Loading from cache

  - Installing graham-campbell/binput (v3.2.0)
    Loading from cache

  - Installing filp/whoops (1.1.7)
    Loading from cache

  - Installing graham-campbell/exceptions (v4.0.0)
    Loading from cache

  - Installing graham-campbell/throttle (v4.1.1)
    Loading from cache

  - Installing jenssegers/date (v3.0.8)
    Loading from cache

  - Installing mccool/laravel-auto-presenter (3.1.1)
    Loading from cache

  - Installing pragmarx/google2fa (v0.5.0)
    Loading from cache

  - Installing roumen/feed (v2.9.3)
    Loading from cache

  - Installing watson/validating (1.0.3)
    Loading from cache

Generating optimized autoload files
Generating optimized class loader
Compiling common classes
Configuration cache cleared!
Configuration cached successfully!
Route cache cleared!
Routes cached successfully!
�>>> Running Command: php artisan migrate �
Nothing to migrate.
�>>> Setting Storage Directory: storage �
�>>> Setting Release Live �

�>>> Deploy Successful�

Make sure your Environment tab is:

APP_ENV=local
APP_DEBUG=true
APP_URL=http://mydomain.com/ [your domain]
APP_KEY=q64efZqizju7eD71s74PczHXgjrkRvM0 [random key]

DB_DRIVER=mysql
DB_HOST=localhost
DB_DATABASE=9a_cachet_live_1444685947 [database name]
DB_USERNAME=root
DB_PASSWORD=iKzXOXWGugz8Mlwe3JbD3wrebMrPM4Cw [database password]

CACHE_DRIVER=file
SESSION_DRIVER=file
QUEUE_DRIVER=database

MAIL_DRIVER=smtp
MAIL_HOST=mailtrap.io
MAIL_PORT=2525
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ADDRESS=null
MAIL_NAME=null

REDIS_HOST=null
REDIS_DATABASE=null
REDIS_PORT=null

Unfortunately Laravel will cache .env files meaning if you update these settings then Laravel may not pick them up, you could ssh into the server and clear the cache:

ssh root@ip
cd /var/www/9a-cachet-live-1444685947/releases/1444689396 [Your most current release]
php artisan config:clear

Or update the deploy.json to:

{
    "commands": [
        "php artisan config:clear"
        "composer install --no-dev -o",
        "php artisan migrate"
    ],
    "storage": {
        "storage": 775
    },
    "permissions": {
    }
}

Logging for debugging problems

Seeing lots of failed but retry or just can't continue errors. One which said look at the logs, but without some feedback I can't fix the problem that is causing the issues.

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.