Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploy Cachet #1

Open
jasonagnew opened this issue Oct 13, 2015 · 0 comments
Open

Deploy Cachet #1

jasonagnew opened this issue Oct 13, 2015 · 0 comments

Comments

@jasonagnew
Copy link
Member

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": {
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant