Last active
June 10, 2019 15:13
-
-
Save JasonRaveling/83f8af30bdaeb79b63d601d8331782b9 to your computer and use it in GitHub Desktop.
Quickly deploy a development environment of JW Management on a Debian based system.
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/sh | |
# Place this script in your home directory (~/) and run it | |
# | |
# This will run some commands to quickly install and run | |
# JWManagement in a development environment. This has | |
# been tested on Ubuntu 19.04 but should work on any | |
# unix-like systems based on Debian. | |
# Check if curl is installed | |
if ! dpkg -s 'curl' > /dev/null 2>&1; then | |
echo "You need to install the curl package for this script to run." | |
# Install curl if on deb system | |
if dpkg -s 'apt' > /dev/null 2>&1; then | |
echo "Attempting to install curl for you." | |
sudo apt install curl # live on the edge... sudo in a script | |
else | |
exit 1; | |
fi | |
fi | |
# Install Meteor | |
if ! meteor --version > /dev/null 2>&1; then | |
curl https://install.meteor.com/ | sh | |
fi | |
# Clone the repo | |
git clone https://github.com/JWDeveloper/JWManagement.git | |
# Install and run JWManagement | |
cd JWManagement; | |
meteor npm install; meteor; | |
# Notice at the end | |
echo; | |
echo; | |
echo "To run the server in the future, you can simply run `meteor` from the JWManagement directory."; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment