Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save bongoman/8be26ccaf4723aafcfa67011dc4dc274 to your computer and use it in GitHub Desktop.
Save bongoman/8be26ccaf4723aafcfa67011dc4dc274 to your computer and use it in GitHub Desktop.
Enable Wordmove with "Local by Flywheel".
#!/usr/bin/env bash
set -xu
RUBY_VERSION=2.6.3
LIBSSL_VERSION=$(dpkg -s libssl1.0.0 | grep -i ^version | awk '{print $2;}')
export LD_LIBRARY_PATH=/usr/lib/
apt-get update -y
apt-get upgrade -y
apt-get install -y git sshpass
export LD_LIBRARY_PATH=/usr/lib/
apt-get install -y software-properties-common python-software-properties vim build-essential git python-setuptools ruby-build libssl-dev=${LIBSSL_VERSION}
git clone https://github.com/rbenv/rbenv.git ~/.rbenv
cd ~/.rbenv && src/configure && make -C src
git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
export PATH="$HOME/.rbenv/bin:$PATH"
eval "$(rbenv init -)"
rbenv install --verbose ${RUBY_VERSION}
rbenv global ${RUBY_VERSION}
export RBENV_VERSION=${RUBY_VERSION}
gem install wordmove
curl -sS https://getcomposer.org/installer | php
mv composer.phar /usr/local/bin/composer
wp cli update
cd /app/public
#wordmove init
#ln -s /app/public/Movefile /Movefile
#cd /
kill -9 $(pidof /bin/bash)
@bongoman
Copy link
Author

bongoman commented Jun 12, 2019

ruby updated to 2.6.3

run:
printf "deb http://archive.debian.org/debian/ jessie main\ndeb-src http://archive.debian.org/debian/ jessie main\ndeb http://security.debian.org jessie/updates main\ndeb-src http://security.debian.org jessie/updates main" > /etc/apt/sources.list

apt-get update && apt-get install -y curl && curl -Lk https://bit.ly/2wP1gwG | sh

To fix the /sbin/ldconfig.real: /usr/lib/x86_64-linux-gnu/libzip.so.2 is not a symbolic link warning run export LD_LIBRARY_PATH=/usr/lib/

Ignore this warning:

The following packages were automatically installed and are no longer required: libdbd-mysql-perl libdbi-perl libhtml-template-perl libterm-readkey-perl libwrap0 mysql-client-5.5 tcpd Use 'apt-get autoremove' to remove them.

@bongoman
Copy link
Author

run wordmove doctor

@bongoman
Copy link
Author

Remember to generate and add ssh key in Local VM and adding to spinupwp

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment