I've been trying to deploy my Vue project to Surge.sh all day, the project uses the webpack-simple
template.
The funny this is, if I deploy it manually from my CLI, it'll work, but if I push it to GitHub and deploy it from Travis CI, it won't work. If I deploy it from Travis, it won't include the dist/
folder so the site won't work.
Here's my Travis CI configuration :
language: node_js
node_js:
- "node"
- "7"
cache:
directories:
- node_modules/
- dist/
install:
- npm install
after_success:
- surge --project . --domain mydomain.surge.sh
And I did added two enviroment variables, which is SURGE_TOKEN
& SURGE_LOGIN
. I really don't know what do right now. So please, help.