Skip to content

Instantly share code, notes, and snippets.

@cornflourblue
Last active December 17, 2019 20:26
Show Gist options
  • Select an option

  • Save cornflourblue/e8c070fe4a88c2360db11a8e5d5568d1 to your computer and use it in GitHub Desktop.

Select an option

Save cornflourblue/e8c070fe4a88c2360db11a8e5d5568d1 to your computer and use it in GitHub Desktop.

Revisions

  1. cornflourblue revised this gist Oct 10, 2018. No changes.
  2. cornflourblue created this gist Sep 26, 2018.
    29 changes: 29 additions & 0 deletions install-meanie-cms-blog-on-ubuntu-1804.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,29 @@
    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