Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save ganeshan/4f43f8d65199b0d437f02247afd499df to your computer and use it in GitHub Desktop.

Select an option

Save ganeshan/4f43f8d65199b0d437f02247afd499df to your computer and use it in GitHub Desktop.
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