chingu-voyage6 / grad.then

grad.then() Life after freeCodeCamp, get a job 💪
https://chingu-voyage6.github.io/grad.then/
MIT License
13 stars 0 forks source link

Use CI for deployment of grad.then() #82

Open spences10 opened 6 years ago

spences10 commented 6 years ago

Lets discuss deployment

There are not many deployment options available for teams to use, I ran through several this morning.

And they will all need either a shared account or a paid team account.

Surge.sh was the most straightforward to set up but appears there's no team option but you can us CI there are several options but I think Travis CI is the most straight forward:

https://surge.sh/help/integrating-with-travis-ci

https://travis-ci.org/chingu-voyage3/grad.then

A .yml file will need to be added to the root of the project:

language: node_js
node_js:
  - "node"

deploy:
  provider: surge
  project: ./public/
  domain: grad-then.surge.sh  
spences10 commented 6 years ago

Ok, after targate we're not using Serge

What I did do was get the gh-pages script working, I hadn't cleared my cache that's why the routes weren't working.

So, now we can all deploy to the gh-pages with the npm script npm run deploy

I'll leave this open for this evening so we can all discuss

Please add anything you think needs discussing

Currently anyone can deploy from a development build, not the most robust of workflows, right now though it's all we have. Everything else I have tried has either caused unexpected issues or not worked.

spences10 commented 6 years ago

Ok, I'm not sure if we can integrate this into our current workflow because we have a npm script to take care of deployment - anyone else have anything to add?