Forked from k4zuki02h4t4/wordmove_with_localbyflywheel.sh
Last active
March 7, 2019 00:53
-
-
Save phillcoxon/27d27a4a64e82a2dbb7edf942628cbdc to your computer and use it in GitHub Desktop.
Enable Wordmove with "Local by Flywheel".
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -xu | |
RUBY_VERSION=2.4.1 | |
LIBSSL_VERSION=$(dpkg -s libssl1.0.0 | grep -i ^version | awk '{print $2;}') | |
apt-get update -y | |
apt-get upgrade -y | |
apt-get install -y git ssh-pass | |
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) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @phillcoxon !
Thanks for your code and comments that is helpful for me.
I'd like to inform you my try and its result.
Tried to make a Local blurprint of this setting, it doesn't contain these tools.
I use 'Clone' instead of a blueprint to adding new site. It works well.
In this page, they say that "Blueprint packages up common themes and plugins."
https://getflywheel.com/why-flywheel/blueprints/
So that blueprint does not contain these tools.
I hope this information helpful.
Cheers.