Forked from cornflourblue/install-meanie-cms-blog-on-ubuntu-1804.sh
Created
February 2, 2019 11:41
-
-
Save cadd/3f4b42c7c812d18b1b746a9344365f2a to your computer and use it in GitHub Desktop.
Install MEANie CMS & Blog on Ubuntu 18.04 - http://jasonwatmore.com/post/2018/09/26/setup-nodejs-mongodb-production-server-on-ubuntu-1804
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
echo " | |
---------------------- | |
MEANIE | |
---------------------- | |
" | |
# clone meanie project from github into /opt/meanie folder | |
sudo git clone https://github.com/cornflourblue/meanie /opt/meanie | |
# install npm packages for meanie | |
cd /opt/meanie/server && npm install | |
# start meanie with pm2 | |
sudo pm2 start server.js | |
# configure nginx reverse proxy | |
sudo cat << EOF > /etc/nginx/sites-available/default | |
server { | |
listen 80 default_server; | |
server_name _; | |
location / { | |
proxy_pass http://localhost:3000; | |
} | |
} | |
EOF | |
# restart nginx | |
sudo systemctl restart nginx |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
install directly with curl:
curl https://gist.githubusercontent.com/cornflourblue/e8c070fe4a88c2360db11a8e5d5568d1/raw/b7cd4ea19f001aad5028120a538919e3a1793ade/install-meanie-cms-blog-on-ubuntu-1804.sh | sudo bash