Last active
March 2, 2019 19:24
-
-
Save phillipsj/72baee701d4aff39357af10aa47b8896 to your computer and use it in GitHub Desktop.
Install Lucky Framework, assumes Crystal is already installed.
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
#! /bin/bash | |
# Setup Node Deps | |
sudo snap install node --channel=11/stable --classic -y | |
# Configure node to use home directory for npm modules | |
wget -O- https://raw.githubusercontent.com/glenpike/npm-g_nosudo/master/npm-g-nosudo.sh | sh | |
# Install Yarn | |
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - | |
echo "deb [arch=amd64] https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list | |
sudo apt-get update && sudo apt-get install --no-install-recommends yarn -y | |
# Install Process Manager Deps | |
sudo apt install tmux -y | |
# Download Overmind | |
wget -O overmind.gz https://github.com/DarthSim/overmind/releases/download/v2.0.0.beta1/overmind-v2.0.0.beta1-linux-amd64.gz | |
# unpack Overmind | |
gunzip overmind.gz | |
# Install Overmind | |
chmod +x ./overmind | |
mv ./overmind ~/.local/bin/overmind | |
# OS Deps | |
sudo apt install libc6-dev libevent-dev libpcre2-dev libpng-dev libssl1.0-dev libyaml-dev zlib1g-dev -y | |
# Get Lucky source | |
git clone https://github.com/luckyframework/lucky_cli | |
cd lucky_cli | |
git checkout v0.12.0 | |
shards install | |
crystal build src/lucky.cr --release --no-debug | |
# Move Lucky to ~/.local/bin | |
chmod +x ./lucky | |
mv ./lucky ~/.local/bin/lucky | |
cd .. | |
rm -rf lucky_cli |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment