cotech / website

The Cooperative Technologists WordPress website
https://www.coops.tech/
GNU General Public License v3.0
24 stars 5 forks source link

Latest dev update generate errors #96

Closed chriscroome closed 6 years ago

chriscroome commented 6 years ago

The cron job to update the dev site is sending out this email every 5 minutes, I'll see what I can do to fix it…

error: The following untracked working tree files would be overwritten by merge:
    web/app/themes/coop-tech-oowp-theme/package-lock.json
Please move or remove them before you merge.
Aborting
No local changes to save
error: The following untracked working tree files would be overwritten by merge:
    web/app/themes/coop-tech-oowp-theme/package-lock.json
Please move or remove them before you merge.
Aborting
Updating bca6e53..64ec67e
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Nothing to install or update
Generating autoload files
Loading composer repositories with package information
Updating dependencies (including require-dev)
Nothing to install or update
Generating autoload files
yarn install v1.5.1
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
warning Cannot find a suitable global folder. Tried these: "/usr/local, /home/cotechdev/.yarn"
warning Cannot find a suitable global folder. Tried these: "/usr/local, /home/cotechdev/.yarn"
warning Cannot find a suitable global folder. Tried these: "/usr/local, /home/cotechdev/.yarn"
warning Cannot find a suitable global folder. Tried these: "/usr/local, /home/cotechdev/.yarn"
error An unexpected error occurred: "/home/cotechdev/sites/web/app/themes/coop-tech-oowp-theme/node_modules/gulp-sass/node_modules/node-sass: Command failed.
Exit code: 1
Command: sh
Arguments: -c node scripts/build.js
Directory: /home/cotechdev/sites/web/app/themes/coop-tech-oowp-theme/node_modules/gulp-sass/node_modules/node-sass
Output:
Building: /usr/bin/node /home/cotechdev/sites/web/app/themes/coop-tech-oowp-theme/node_modules/node-gyp/bin/node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
gyp info it worked if it ends with ok
gyp verb cli [ '/usr/bin/node',
gyp verb cli   '/home/cotechdev/sites/web/app/themes/coop-tech-oowp-theme/node_modules/node-gyp/bin/node-gyp.js',
gyp verb cli   'rebuild',
gyp verb cli   '--verbose',
gyp verb cli   '--libsass_ext=',
gyp verb cli   '--libsass_cflags=',
gyp verb cli   '--libsass_ldflags=',
gyp verb cli   '--libsass_library=' ]
gyp info using node-gyp@3.6.2
gyp info using node@9.10.1 | linux | x64
gyp verb command rebuild []
gyp verb command clean []
gyp verb clean removing \"build\" directory
gyp verb command configure []
gyp verb check python checking for Python executable \"python2\" in the PATH
gyp verb `which` succeeded python2 /usr/bin/python2
gyp verb check python version `/usr/bin/python2 -c \"import platform; print(platform.python_version());\"` returned: \"2.7.13\
\"
gyp verb get node dir no --target version specified, falling back to host node version: 9.10.1
gyp verb command install [ '9.10.1' ]
gyp verb install input version string \"9.10.1\"
gyp verb install installing version: 9.10.1
gyp verb install --ensure was passed, so won't reinstall if already installed
gyp verb install version not already installed, continuing with install 9.10.1
gyp verb ensuring nodedir is created /home/cotechdev/.node-gyp/9.10.1
gyp WARN EACCES user \"undefined\" does not have permission to access the dev dir \"/home/cotechdev/.node-gyp/9.10.1\"
gyp WARN EACCES attempting to reinstall using temporary dev dir \"/tmp/.node-gyp\"
gyp verb command install [ '9.10.1' ]
gyp verb install input version string \"9.10.1\"
gyp verb install installing version: 9.10.1
gyp verb install --ensure was passed, so won't reinstall if already installed
gyp verb install version is already installed, need to check \"installVersion\"
gyp verb got \"installVersion\" 9
gyp verb needs \"installVersion\" 9
gyp verb install version is good
gyp verb get node dir target node version installed: 9.10.1
gyp verb build dir attempting to create \"build\" dir: /home/cotechdev/sites/web/app/themes/coop-tech-oowp-theme/node_modules/gulp-sass/node_modules/node-sass/build
gyp verb build dir \"build\" dir needed to be created? /home/cotechdev/sites/web/app/themes/coop-tech-oowp-theme/node_modules/gulp-sass/node_modules/node-sass/build
gyp verb build/config.gypi creating config file
gyp verb build/config.gypi writing out config file: /home/cotechdev/sites/web/app/themes/coop-tech-oowp-theme/node_modules/gulp-sass/node_modules/node-sass/build/config.gypi
gyp verb config.gypi checking for gypi file: /home/cotechdev/sites/web/app/themes/coop-tech-oowp-theme/node_modules/gulp-sass/node_modules/node-sass/config.gypi
gyp verb common.gypi checking for gypi file: /home/cotechdev/sites/web/app/themes/coop-tech-oowp-theme/node_modules/gulp-sass/node_modules/node-sass/common.gypi
gyp verb gyp gyp format was not specified; forcing \"make\"
gyp info spawn /usr/bin/python2
gyp info spawn args [ '/home/cotechdev/sites/web/app/themes/coop-tech-oowp-theme/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args   'binding.gyp',
gyp info spawn args   '-f',
gyp info spawn args   'make',
gyp info spawn args   '-I',
gyp info spawn args   '/home/cotechdev/sites/web/app/themes/coop-tech-oowp-theme/node_modules/gulp-sass/node_modules/node-sass/build/config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/home/cotechdev/sites/web/app/themes/coop-tech-oowp-theme/node_modules/node-gyp/addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/tmp/.node-gyp/9.10.1/include/node/common.gypi',
gyp info spawn args   '-Dlibrary=shared_library',
gyp info spawn args   '-Dvisibility=default',
gyp info spawn args   '-Dnode_root_dir=/tmp/.node-gyp/9.10.1',
gyp info spawn args   '-Dnode_gyp_dir=/home/cotechdev/sites/web/app/themes/coop-tech-oowp-theme/node_modules/node-gyp',
gyp info spawn args   '-Dnode_lib_file=/tmp/.node-gyp/9.10.1/<(target_arch)/node.lib',
gyp info spawn args   '-Dmodule_root_dir=/home/cotechdev/sites/web/app/themes/coop-tech-oowp-theme/node_modules/gulp-sass/node_modules/node-sass',
gyp info spawn args   '-Dnode_engine=v8',
gyp info spawn args   '--depth=.',
gyp info spawn args   '--no-parallel',
gyp info spawn args   '--generator-output',
gyp info spawn args   'build',
gyp info spawn args   '-Goutput_dir=.' ]
gyp verb command build []
gyp verb build type Release
gyp verb architecture x64
gyp verb node dev dir /tmp/.node-gyp/9.10.1
gyp verb `which` succeeded for `make` /usr/bin/make
gyp info spawn make
gyp info spawn args [ 'V=1', 'BUILDTYPE=Release', '-C', 'build' ]
make: Entering directory '/home/cotechdev/sites/web/app/themes/coop-tech-oowp-theme/node_modules/gulp-sass/node_modules/node-sass/build'
  g++ '-DNODE_GYP_MODULE_NAME=libsass' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DLIBSASS_VERSION=\"3.3.6\"' -I/tmp/.node-gyp/9.10.1/include/node -I/tmp/.node-gyp/9.10.1/src -I/tmp/.node-gyp/9.10.1/deps/uv/include -I/tmp/.node-gyp/9.10.1/deps/v8/include -I../src/libsass/include  -fPIC -pthread -Wall -Wextra -Wno-unused-parameter -m64 -O3 -fno-omit-frame-pointer -std=gnu++0x -std=c++0x -fexceptions -frtti -MMD -MF ./Release/.deps/Release/obj.target/libsass/src/libsass/src/ast.o.d.raw   -c -o Release/obj.target/libsass/src/libsass/src/ast.o ../src/libsass/src/ast.cpp
  g++ '-DNODE_GYP_MODULE_NAME=libsass' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DLIBSASS_VERSION=\"3.3.6\"' -I/tmp/.node-gyp/9.10.1/include/node -I/tmp/.node-gyp/9.10.1/src -I/tmp/.node-gyp/9.10.1/deps/uv/include -I/tmp/.node-gyp/9.10.1/deps/v8/include -I../src/libsass/include  -fPIC -pthread -Wall -Wextra -Wno-unused-parameter -m64 -O3 -fno-omit-frame-pointer -std=gnu++0x -std=c++0x -fexceptions -frtti -MMD -MF ./Release/.deps/Release/obj.target/libsass/src/libsass/src/base64vlq.o.d.raw   -c -o Release/obj.target/libsass/src/libsass/src/base64vlq.o ../src/libsass/src/base64vlq.cpp
  g++ '-DNODE_GYP_MODULE_NAME=libsass' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DLIBSASS_VERSION=\"3.3.6\"' -I/tmp/.node-gyp/9.10.1/include/node -I/tmp/.node-gyp/9.10.1/src -I/tmp/.node-gyp/9.10.1/deps/uv/include -I/tmp/.node-gyp/9.10.1/deps/v8/include -I../src/libsass/include  -fPIC -pthread -Wall -Wextra -Wno-unused-parameter -m64 -O3 -fno-omit-frame-pointer -std=gnu++0x -std=c++0x -fexceptions -frtti -MMD -MF ./Release/.deps/Release/obj.target/libsass/src/libsass/src/bind.o.d.raw   -c -o Release/obj.target/libsass/src/libsass/src/bind.o ../src/libsass/src/bind.cpp
  cc '-DNODE_GYP_MODULE_NAME=libsass' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DLIBSASS_VERSION=\"3.3.6\"' -I/tmp/.node-gyp/9.10.1/include/node -I/tmp/.node-gyp/9.10.1/src -I/tmp/.node-gyp/9.10.1/deps/uv/include -I/tmp/.node-gyp/9.10.1/deps/v8/include -I../src/libsass/include  -fPIC -pthread -Wall -Wextra -Wno-unused-parameter -m64 -O3 -fno-omit-frame-pointer  -MMD -MF ./Release/.deps/Release/obj.target/libsass/src/libsass/src/cencode.o.d.raw   -c -o Release/obj.target/libsass/src/libsass/src/cencode.o ../src/libsass/src/cencode.c
  g++ '-DNODE_GYP_MODULE_NAME=libsass' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DLIBSASS_VERSION=\"3.3.6\"' -I/tmp/.node-gyp/9.10.1/include/node -I/tmp/.node-gyp/9.10.1/src -I/tmp/.node-gyp/9.10.1/deps/uv/include -I/tmp/.node-gyp/9.10.1/deps/v8/include -I../src/libsass/include  -fPIC -pthread -Wall -Wextra -Wno-unused-parameter -m64 -O3 -fno-omit-frame-pointer -std=gnu++0x -std=c++0x -fexceptions -frtti -MMD -MF ./Release/.deps/Release/obj.target/libsass/src/libsass/src/color_maps.o.d.raw   -c -o Release/obj.target/libsass/src/libsass/src/color_maps.o ../src/libsass/src/color_maps.cpp
  g++ '-DNODE_GYP_MODULE_NAME=libsass' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DLIBSASS_VERSION=\"3.3.6\"' -I/tmp/.node-gyp/9.10.1/include/node -I/tmp/.node-gyp/9.10.1/src -I/tmp/.node-gyp/9.10.1/deps/uv/include -I/tmp/.node-gyp/9.10.1/deps/v8/include -I../src/libsass/include  -fPIC -pthread -Wall -Wextra -Wno-unused-parameter -m64 -O3 -fno-omit-frame-pointer -std=gnu++0x -std=c++0x -fexceptions -frtti -MMD -MF ./Release/.deps/Release/obj.target/libsass/src/libsass/src/constants.o.d.raw   -c -o Release/obj.target/libsass/src/libsass/src/constants.o ../src/libsass/src/constants.cpp
  g++ '-DNODE_GYP_MODULE_NAME=libsass' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DLIBSASS_VERSION=\"3.3.6\"' -I/tmp/.node-gyp/9.10.1/include/node -I/tmp/.node-gyp/9.10.1/src -I/tmp/.node-gyp/9.10.1/deps/uv/include -I/tmp/.node-gyp/9.10.1/deps/v8/include -I../src/libsass/include  -fPIC -pthread -Wall -Wextra -Wno-unused-parameter -m64 -O3 -fno-omit-frame-pointer -std=gnu++0x -std=c++0x -fexceptions -frtti -MMD -MF ./Release/.deps/Release/obj.target/libsass/src/libsass/src/context.o.d.raw   -c -o Release/obj.target/libsass/src/libsass/src/context.o ../src/libsass/src/context.cpp
  g++ '-DNODE_GYP_MODULE_NAME=libsass' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DLIBSASS_VERSION=\"3.3.6\"' -I/tmp/.node-gyp/9.10.1/include/node -I/tmp/.node-gyp/9.10.1/src -I/tmp/.node-gyp/9.10.1/deps/uv/include -I/tmp/.node-gyp/9.10.1/deps/v8/include -I../src/libsass/include  -fPIC -pthread -Wall -Wextra -Wno-unused-parameter -m64 -O3 -fno-omit-frame-pointer -std=gnu++0x -std=c++0x -fexceptions -frtti -MMD -MF ./Release/.deps/Release/obj.target/libsass/src/libsass/src/cssize.o.d.raw   -c -o Release/obj.target/libsass/src/libsass/src/cssize.o ../src/libsass/src/cssize.cpp
  g++ '-DNODE_GYP_MODULE_NAME=libsass' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DLIBSASS_VERSION=\"3.3.6\"' -I/tmp/.node-gyp/9.10.1/include/node -I/tmp/.node-gyp/9.10.1/src -I/tmp/.node-gyp/9.10.1/deps/uv/include -I/tmp/.node-gyp/9.10.1/deps/v8/include -I../src/libsass/include  -fPIC -pthread -Wall -Wextra -Wno-unused-parameter -m64 -O3 -fno-omit-frame-pointer -std=gnu++0x -std=c++0x -fexceptions -frtti -MMD -MF ./Release/.deps/Release/obj.target/libsass/src/libsass/src/emitter.o.d.raw   -c -o Release/obj.target/libsass/src/libsass/src/emitter.o ../src/libsass/src/emitter.cpp
  g++ '-DNODE_GYP_MODULE_NAME=libsass' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DLIBSASS_VERSION=\"3.3.6\"' -I/tmp/.node-gyp/9.10.1/include/node -I/tmp/.node-gyp/9.10.1/src -I/tmp/.node-gyp/9.10.1/deps/uv/include -I/tmp/.node-gyp/9.10.1/deps/v8/include -I../src/libsass/include  -fPIC -pthread -Wall -Wextra -Wno-unused-parameter -m64 -O3 -fno-omit-frame-pointer -std=gnu++0x -std=c++0x -fexceptions -frtti -MMD -MF ./Release/.deps/Release/obj.target/libsass/src/libsass/src/environment.o.d.raw   -c -o Release/obj.target/libsass/src/libsass/src/environment.o ../src/libsass/src/environment.cpp
  g++ '-DNODE_GYP_MODULE_NAME=libsass' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DLIBSASS_VERSION=\"3.3.6\"' -I/tmp/.node-gyp/9.10.1/include/node -I/tmp/.node-gyp/9.10.1/src -I/tmp/.node-gyp/9.10.1/deps/uv/include -I/tmp/.node-gyp/9.10.1/deps/v8/include -I../src/libsass/include  -fPIC -pthread -Wall -Wextra -Wno-unused-parameter -m64 -O3 -fno-omit-frame-pointer -std=gnu++0x -std=c++0x -fexceptions -frtti -MMD -MF ./Release/.deps/Release/obj.target/libsass/src/libsass/src/error_handling.o.d.raw   -c -o Release/obj.target/libsass/src/libsass/src/error_handling.o ../src/libsass/src/error_handling.cpp
../src/libsass/src/error_handling.cpp:194:1: fatal error: opening dependency file ./Release/.deps/Release/obj.target/libsass/src/libsass/src/error_handling.o.d.raw: No such file or directory
 }
 ^
compilation terminated.
src/libsass.target.mk:139: recipe for target 'Release/obj.target/libsass/src/libsass/src/error_handling.o' failed
make: Leaving directory '/home/cotechdev/sites/web/app/themes/coop-tech-oowp-theme/node_modules/gulp-sass/node_modules/node-sass/build'
make: *** [Release/obj.target/libsass/src/libsass/src/error_handling.o] Error 1
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/home/cotechdev/sites/web/app/themes/coop-tech-oowp-theme/node_modules/node-gyp/lib/build.js:258:23)
gyp ERR! stack     at ChildProcess.emit (events.js:180:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:209:12)
gyp ERR! System Linux 4.9.0-5-amd64
gyp ERR! command \"/usr/bin/node\" \"/home/cotechdev/sites/web/app/themes/coop-tech-oowp-theme/node_modules/node-gyp/bin/node-gyp.js\" \"rebuild\" \"--verbose\" \"--libsass_ext=\" \"--libsass_cflags=\" \"--libsass_ldflags=\" \"--libsass_library=\"
gyp ERR! cwd /home/cotechdev/sites/web/app/themes/coop-tech-oowp-theme/node_modules/gulp-sass/node_modules/node-sass
gyp ERR! node -v v9.10.1
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok 
Build failed with error code: 1".
info If you think this is a bug, please open a bug report with the information provided in "/home/cotechdev/sites/web/app/themes/coop-tech-oowp-theme/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
[09:20:23] Using gulpfile ~/sites/web/app/themes/coop-tech-oowp-theme/gulpfile.js
[09:20:23] Starting 'all'...
[09:20:23] Starting 'sass'...
[09:20:23] 'sass' errored after 145 ms
[09:20:23] Error: Node Sass does not yet support your current environment: Linux 64-bit with Unsupported runtime (59)
For more information on which environments are supported please see:
https://github.com/sass/node-sass/releases/tag/v3.13.1
    at module.exports (/home/cotechdev/sites/web/app/themes/coop-tech-oowp-theme/node_modules/gulp-sass/node_modules/node-sass/lib/binding.js:13:13)
    at Object.<anonymous> (/home/cotechdev/sites/web/app/themes/coop-tech-oowp-theme/node_modules/gulp-sass/node_modules/node-sass/lib/index.js:14:35)
    at Module._compile (module.js:649:30)
    at Object.Module._extensions..js (module.js:660:10)
    at Module.load (module.js:561:32)
    at tryModuleLoad (module.js:501:12)
    at Function.Module._load (module.js:493:3)
    at Module.require (module.js:593:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/home/cotechdev/sites/web/app/themes/coop-tech-oowp-theme/node_modules/gulp-sass/index.js:187:21)
[09:20:23] 'all' errored after 157 ms
[09:20:23] Error in plugin 'run-sequence(sass)'
Message:
    Node Sass does not yet support your current environment: Linux 64-bit with Unsupported runtime (59)
For more information on which environments are supported please see:
https://github.com/sass/node-sass/releases/tag/v3.13.1
Stack:
Error: Node Sass does not yet support your current environment: Linux 64-bit with Unsupported runtime (59)
For more information on which environments are supported please see:
https://github.com/sass/node-sass/releases/tag/v3.13.1
    at module.exports (/home/cotechdev/sites/web/app/themes/coop-tech-oowp-theme/node_modules/gulp-sass/node_modules/node-sass/lib/binding.js:13:13)
    at Object.<anonymous> (/home/cotechdev/sites/web/app/themes/coop-tech-oowp-theme/node_modules/gulp-sass/node_modules/node-sass/lib/index.js:14:35)
    at Module._compile (module.js:649:30)
    at Object.Module._extensions..js (module.js:660:10)
    at Module.load (module.js:561:32)
    at tryModuleLoad (module.js:501:12)
    at Function.Module._load (module.js:493:3)
    at Module.require (module.js:593:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/home/cotechdev/sites/web/app/themes/coop-tech-oowp-theme/node_modules/gulp-sass/index.js:187:21)
Success: WordPress database already at latest db version 38590.
chriscroome commented 6 years ago

So, I tried this:

cd ~/sites/
git pull
  Updating bca6e53..64ec67e
  error: The following untracked working tree files would be overwritten by merge:
          web/app/themes/coop-tech-oowp-theme/package-lock.json
  Please move or remove them before you merge.
  Aborting
mv web/app/themes/coop-tech-oowp-theme/package-lock.json ~/private/
git pull
  warning: fetch updated the current branch head.
  fast-forwarding your working tree from
  commit bca6e53b1dea6a1f743ad97266a9de2d66f9cbf9.
  error: Your local changes to the following files would be overwritten by merge:
          README.md
          docker-compose.yml
          docker/assets/Dockerfile
          web/app/themes/coop-tech-oowp-theme/assets/scss/app.scss
          web/app/themes/coop-tech-oowp-theme/gulpfile.js
          web/app/themes/coop-tech-oowp-theme/package.json
          web/app/themes/coop-tech-oowp-theme/views/layout.php
  Please commit your changes or stash them before you merge.
  error: The following untracked working tree files would be overwritten by merge:
          web/app/themes/coop-tech-oowp-theme/package-lock.json
  Please move or remove them before you merge.
  Aborting
  fatal: Cannot fast-forward your working tree.
  After making sure that you saved anything precious from
  $ git diff bca6e53b1dea6a1f743ad97266a9de2d66f9cbf9
  output, run
  $ git reset --hard
  to recover.
git stash
  No local changes to save
git checkout dev
  Already on 'dev'
  Your branch is up-to-date with 'origin/dev'.
git pull
  Already up-to-date.
bash ~/bin/update 
  No local changes to save
  Already up-to-date.
  Loading composer repositories with package information
  Installing dependencies (including require-dev) from lock file
  Nothing to install or update
  Generating autoload files
  Loading composer repositories with package information
  Updating dependencies (including require-dev)
  Nothing to install or update
  Generating autoload files
  yarn install v1.5.1
  [1/4] Resolving packages...
  success Already up-to-date.
  Done in 0.69s.
  [09:37:50] Using gulpfile ~/sites/web/app/themes/coop-tech-oowp-theme/gulpfile.js
  [09:37:50] Starting 'copy'...
  [09:37:50] Starting 'scripts:vendor'...
  [09:37:50] Starting 'scripts:app'...
  [09:37:50] Starting 'styles'...
  [09:37:50] Finished 'scripts:app' after 177 ms
  [09:38:04] Finished 'scripts:vendor' after 14 s
  [09:38:04] Starting 'scripts'...
  [09:38:04] Finished 'scripts' after 49 μs
  [09:38:04] Finished 'styles' after 14 s
  [09:38:04] Finished 'copy' after 14 s
  [09:38:04] Starting 'default'...
  [09:38:04] Finished 'default' after 9.19 μs
  Success: WordPress database already at latest db version 38590.

And it now seems to be up and running OK:

https://dev.coops.tech/

decentral1se commented 6 years ago

Eyo @chriscroome, wanna distribute the load? Maybe add me for mail for the cron?

We should probably also think about limited accounts for SSHing in and dealing with this stuff?

Would also be nice to know when things deployed - I wouldn't be against a mail for that too ....

chriscroome commented 6 years ago

Hi @lwm sure, currently the site is set to only have SFTP access, see:

https://docs.webarch.net/wiki/SFTP

We could enable SSH access:

https://docs.webarch.net/wiki/SSH

This would disable SFTP access but I expect that isn't an issue for us.

If I run this will I get your current SSH keys?

su - cotechdev -s /bin/bash
ssh-import-id-gh lwm
chriscroome commented 6 years ago

That appears to have worked:

ssh-import-id-gh lwm
2018-03-31 09:55:10,633 INFO Authorized key ['4096', 'SHA256:zgvToMpoN0p6ApArD2QpJzYxeFagPTePp+R37xVKcrc', 'lwm@github/19097372', '(RSA)']
2018-03-31 09:55:10,634 INFO [1] SSH keys [Authorized]

I have switched the account over to enable SSH, try this:

ssh cotechdev@webarch1.co.uk

The site is in ~/sites/web, add yourself to ~/.forward if you wish to get emails, the only thing we haven't sorted is editing the crontab in the chroot -- I'm afraid I have to do that, however you can edit it in git:

https://git.coop/cotech/ansible/blob/master/roles/live2dev/tasks/main.yml#L29

And this is what we currently have:

#Ansible: Update code
* * * * * /home/cotechdev/bin/cron
#Ansible: Create tgz of uploads
01 09 * * * cd /home/cotechdev/sites/web ; tar -zcf cotech-images.tgz app/uploads/
decentral1se commented 6 years ago

Oh yes, done and done. Nice one. I'll ping on any crontab changes with a PR. Nice one!