Skip to content

Instantly share code, notes, and snippets.

View s3w47m88's full-sized avatar

Spencer Hill s3w47m88

View GitHub Profile
➜ trellis git:(master) ✗ sudo ./bin/deploy.sh production kangapestcontrol.com
PLAY [Ensure necessary variables are defined] ****************************************************************************************
TASK [Ensure environment is defined] *************************************************************************************************
skipping: [localhost]
PLAY [Test Connection] ***************************************************************************************************************
TASK [connection : Require manual definition of remote-user] *************************************************************************
TASK [Ensure site is valid] **********************************************************************************************************
skipping: [kangapestcontrol.com]
TASK [Ensure repo is valid] **********************************************************************************************************
skipping: [kangapestcontrol.com]
TASK [deploy : include] **************************************************************************************************************
TASK [deploy : include] **************************************************************************************************************
➜ trellis git:(master) sudo npm install gulp -D
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated [email protected]: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree.
npm WARN saveError ENOENT: no such file or directory, open '/home/spencerhill/Sites/kangapestcontrol.com/trellis/package.json'
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN enoent ENOENT: no such file or directory, open '/home/spencerhill/Sites/kangapestcontrol.com/trellis/package.json'
npm WARN trellis No description
npm WARN trellis No repository field.
npm WARN trellis No README data
@s3w47m88
s3w47m88 / Trellis Configuration on Ubuntu Budgie 16.04
Last active August 12, 2017 04:41
These are all the steps I took to install everything necessary for managing sites with Trellis. Yet I get an error I don't know how to resolve.
spencerhill@ubuntu-budgie:~$ apt-get install git
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
spencerhill@ubuntu-budgie:~$ sudo apt-get install git
[sudo] password for spencerhill:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
busybox-static guile-2.0-libs libgc1c2 libqqwing2v5 libtimezonemap-data libtimezonemap1 libutempter0 lsof
➜ trellis git:(master) ✗ ansible-playbook deploy.yml -e env=production -e site=kangapestcontrol.com -vvvv
Using /Users/spencerhill/Sites/kangapestcontrol.com/trellis/ansible.cfg as config file
statically included: /Users/spencerhill/Sites/kangapestcontrol.com/trellis/roles/deploy/tasks/initialize.yml
statically included: /Users/spencerhill/Sites/kangapestcontrol.com/trellis/roles/deploy/tasks/update.yml
statically included: /Users/spencerhill/Sites/kangapestcontrol.com/trellis/roles/deploy/tasks/prepare.yml
statically included: /Users/spencerhill/Sites/kangapestcontrol.com/trellis/roles/deploy/tasks/build.yml
statically included: /Users/spencerhill/Sites/kangapestcontrol.com/trellis/roles/deploy/tasks/share.yml
statically included: /Users/spencerhill/Sites/kangapestcontrol.com/trellis/roles/deploy/tasks/finalize.yml
Loading callback plugin output of type stdout, v2.0 from /usr/local/lib/python2.7/site-packages/ansible/plugins/callback/__init__.pyc
➜ trellis git:(master) ✗ ansible-playbook server.yml -e env=production --tags wordpress -vvvv
Using /Users/spencerhill/Sites/kangapestcontrol.com/trellis/ansible.cfg as config file
statically included: /Users/spencerhill/Sites/kangapestcontrol.com/trellis/roles/common/tasks/disable_challenge_sites.yml
statically included: /Users/spencerhill/Sites/kangapestcontrol.com/trellis/roles/common/tasks/reload_nginx.yml
statically included: /Users/spencerhill/Sites/kangapestcontrol.com/trellis/roles/users/tasks/connection-warnings.yml
statically included: /Users/spencerhill/Sites/kangapestcontrol.com/trellis/vendor/roles/composer/tasks/global-require.yml
statically included: /Users/spencerhill/Sites/kangapestcontrol.com/trellis/roles/letsencrypt/tasks/setup.yml
statically included: /Users/spencerhill/Sites/kangapestcontrol.com/trellis/roles/letsencrypt/tasks/nginx.yml
statically included: /Users/spencerhill/Sites/kangapestcontrol.com/trellis/roles/letsencrypt/tasks/certificates.yml
statically included: /Users/spencerh
<div class="row" id="kpc-row-10">
<div class="container">
<div class="row">
<div class="col-sm offset-sm-2">
</div>
<div class="col-sm offset-sm-2">
<div class="row" id="kpc-row-10">
<div class="container">
<div class="row">
<div class="col-sm">
</div>
<div class="col-sm">
TASK [deploy : Run gulp] *******************************************************
System info:
Ansible 2.2.1.0; Darwin
Trellis at "Remove potentially dangerous `db_import` option"
---------------------------------------------------
fatal: [staging.kangapestcontrol.com]: FAILED! => {"changed": true, "cmd": ["gulp", "--production"], "delta": "0:00:10.633263", "end": "2017-04-10 13:27:15.969226", "failed": true, "rc": 1, "start": "2017-04-10 13:27:05.335963", "stderr": "", "stdout": "[13:27:08] Using gulpfile ~/Sites/kangapestcontrol.com/site/web/app/themes/kanga-pest-control-2017/gulpfile.js\n[13:27:08] Starting 'clean'...\n[13:27:08] Finished 'clean' after 39 ms\n[13:27:08] Starting 'default'...\n[13:27:08] Starting 'build'...\n[13:27:08] Starting 'wiredep'...\n[13:27:09] Finished 'default' after 429 ms\n[13:27:09] Finished 'wiredep' after 486 ms\n[13:27:09] Starting 'styles'...\n[13:27:15] Finished 'styles' after 6.41 s\n[13:27:15] Starting 'jshint'...\n\nassets/scripts/main.js\n line 25 col 11 Missing
TASK [deploy : Clone project files] ********************************************
System info:
Ansible 2.2.1.0; Darwin
Trellis at "Remove potentially dangerous `db_import` option"
---------------------------------------------------
Cloning into '/srv/www/kangapestcontrol.com/shared/source'...
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING:********@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!