lisawilliams / trollbustersbot-test

A Botpress-based Facebook bot to assist people who are experiencing online harassment
http://troll-busters.com
Other
0 stars 0 forks source link

Deploy bot to Heroku #1

Closed lisawilliams closed 6 years ago

lisawilliams commented 6 years ago

Use the following instructions: https://botpress.io/docs/deploy/heroku.html

Refer to this issue on previous repo for previous attempts and more details: https://github.com/lisawilliams/botpress-test/issues/11

lisawilliams commented 6 years ago

Initial git push heroku master failed because of issues with package.json syntax. Fixed syntax and ran again. Succeeded with following messages:

Counting objects: 22, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (22/22), done.
Writing objects: 100% (22/22), 36.01 KiB | 0 bytes/s, done.
Total 22 (delta 6), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote: 
remote: -----> Node.js app detected
remote: 
remote: -----> Creating runtime environment
remote:        
remote:        NPM_CONFIG_LOGLEVEL=error
remote:        NPM_CONFIG_PRODUCTION=true
remote:        NODE_VERBOSE=false
remote:        NODE_ENV=production
remote:        NODE_MODULES_CACHE=true
remote: 
remote: -----> Installing binaries
remote:        engines.node (package.json):  >= 8.0
remote:        engines.npm (package.json):   unspecified (use default)
remote:        
remote:        Resolving node version >= 8.0...
remote:        Downloading and installing node 8.5.0...
remote:        Detected package-lock.json: defaulting npm to version 5.x.x
remote:        Bootstrapping npm 5.x.x (replacing 5.3.0)...
remote:        npm 5.4.2 installed
remote: 
remote: -----> Restoring cache
remote:        Skipping cache restore (not-found)
remote: 
remote: -----> Building dependencies
remote:        Installing node modules (package.json + package-lock)
remote:        
remote:        > sqlite3@3.1.11 install /tmp/build_7bb5d032b8026e351caec0c4cce68380/node_modules/sqlite3
remote:        > node-pre-gyp install --fallback-to-build
remote:        
remote:        [sqlite3] Success: "/tmp/build_7bb5d032b8026e351caec0c4cce68380/node_modules/sqlite3/lib/binding/node-v57-linux-x64/node_sqlite3.node" is installed via remote
remote:        added 590 packages in 13.028s
remote: 
remote: -----> Caching build
remote:        Clearing previous node cache
remote:        Saving 2 cacheDirectories (default):
remote:        - node_modules
remote:        - bower_components (nothing to cache)
remote: 
remote: -----> Build succeeded!
remote: -----> Discovering process types
remote:        Procfile declares types     -> (none)
remote:        Default types for buildpack -> web
remote: 
remote: -----> Compressing...
remote:        Done: 59M
remote: -----> Launching...
remote:        Released v6
remote:        https://trollbusters-bot.herokuapp.com/ deployed to Heroku
lisawilliams commented 6 years ago

Bot successfully deployed on Heroku!!! 🎉🎉🎉