- Install NGINX on Ubuntu 14-04
- Install letsencrypt to get CA certificate
- Update NGINX config to enable HTTPS connection
- https://certbot.eff.org/#ubuntutrusty-nginx
- http://nginx.org/en/docs/http/configuring_https_servers.html
- Setup Ionic
- Install git
- sudo apt-get install git
- sudo npm install gulp -g
- Clone frontend repo onto server
- git clone https://github.com/Wishes-CS3216/Wishes-Frontend.git
- Update NGINX configuration (located at /etc/nginx/sites-avaiable/default)
- http://nginx.org/en/docs/beginners_guide.html
- restar NGINX
- Setup Rails
- Clone backend repo
- git clone https://github.com/Wishes-CS3216/Wishes-Backend.git
- Update NGINX configuration
- https://www.digitalocean.com/community/tutorials/how-to-deploy-a-rails-app-with-puma-and-nginx-on-ubuntu-14-04 (We are using Puma here. Other alternatives are Passenger and Unicorn)
- git clone https://github.com/Wishes-CS3216/Wishes-Backend.git
- update Rails configurations if necessary (under repo/config/ folder)
- start Puma
- restart NGINX
Links to relevant resource are attached here. Hope it can be useful. If you are still confused about the detailed configurations please feel free to comment below. Cheers =)