Automate deployment NodeJS via TravisCI

29 views
Skip to first unread message

Rainbow The Pony

unread,
Jul 22, 2017, 12:01:59 PM7/22/17
to Google App Engine
Howdy everyone

I have a little bit of problem while trying to using the TravsiCI to deploy my code.
When every time Travis get to the deploy session, everything looks just fine, but until the `gcloud` command `npm start` it always throw and error said can't not find module `./db`.

My code uses the TravisCI CLI to encrypt two file, one is `src/db.js` and other on is `gcsAuth/gcsAuthToken.json`, but I already decrypt and extract thought two files `before_install`

And I also 100% sure thought two file are there, because I already run `ls -la` to making sure they are there.

.travis.yml
language: node_js
node_js:
- node
deploy:
  provider: gae
 
keyfile: gcsAuth/gcsAuthToken.json
 
project: hoovessound-173007
 
on: master
before_install:
  - <decrypt code>
  - tar xvf encrypt_pack.tar

Thanks

Yannick (Cloud Platform Support)

unread,
Jul 24, 2017, 4:35:57 PM7/24/17
to Google App Engine
Hey there, this forum is intended for discussion on Google App Engine. For help with your specific technical question I recommend you post your question on Stack Overflow using one of the tags monitored by our community technical support team, though in this case it sounds like travis is the source of your issues so you'll want to include its tag as well.

You'll want to include as much information about your situation as possible, including the console/log output of travis that includes the error.
Reply all
Reply to author
Forward
0 new messages