1.0.0 • Published 5 years ago
fast-spa v1.0.0
Fast SPA
An attempt at minimizing time from idea to deployment using ansible, letsencrypt, git and ssh. Why use a globally spaning, super-optimzied CDN when the trusty old NGINX will do the trick? Unless your amazing site is serving many thousands requests per second - a puny single core VM will be more than enough
The process
fast-spa create -n kartansite -fqdn app14.kartan.no
Preqrequisites
Ensure that preqrequisites are installed:
- git
- ansible
- ssh/scp
Setup the SPA
react-static // create-react-app - with parameters passed through if no match with fast-spa
Run the deployment prep
ansible-playbook playbook.yml
Build the app
yarn build
Push it to your deployment directory
scp dist app14.kartan.no:/var/www/app14.kartan.no
1.0.0
5 years ago