howdyai / botkit-cms

An open tool for designing, building and managing interactive dialog systems
https://botkit.ai
MIT License
265 stars 92 forks source link

error when "npm start" #33

Closed crazyoptimist closed 3 years ago

crazyoptimist commented 4 years ago

Hi I got this error when I try get the cms up and running;

`root@3b74527adc70:/app# npm start

botkit-cms@0.0.3 start /app node index.js

internal/modules/cjs/loader.js:796 throw err; ^

Error: Cannot find module '/app/src/api.js' Require stack:

npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2020-03-02T16_33_07_062Z-debug.log `

Before that, "npm run build" was successful like this;

`root@3b74527adc70:/app# npm run build

botkit-cms@0.0.3 build /app ./node_modules/gulp/bin/gulp.js

[16:32:09] Using gulpfile /app/gulpfile.js [16:32:09] Starting 'default'... [16:32:09] Starting 'controller-concat'... [16:32:09] Concatenating and Copying Controllers... [16:32:10] Finished 'controller-concat' after 26 ms [16:32:10] Starting 'copy-partials'... [16:32:10] Copying HTML partials... [16:32:10] Finished 'copy-partials' after 7.53 ms [16:32:10] Starting 'copy-more-partials'... [16:32:10] Copying HTML partials... [16:32:10] Finished 'copy-more-partials' after 4.99 ms [16:32:10] Starting 'sass'... [16:32:10] Compiling Sass... [16:32:10] Finished 'sass' after 5.73 ms [16:32:10] Finished 'default' after 47 ms `

Any idea? Thank you in advance!

crazyoptimist commented 4 years ago

Oh, I am sorry, was my fault. This was the error in my Dockerfile: COPY ./botkit-cms/* /app/ Solved after I removed asterisk from the command. By the way, can I push the dockerized version?