Code Monkey home page Code Monkey logo

Comments (8)

camilorojasg avatar camilorojasg commented on August 9, 2024 1

I was getting similar issues. The problem was I haven't a large enough swap file. Now the make requirements ui-requirements command works perfect.
You can check if you have a swap file by issuing:
swapon -s

If not, then issue something like:
sudo dd if=/dev/zero of=/swapfile bs=1024 count=1024k
sudo mkswap /swapfile
sudo swapon /swapfile

Then check the swap file again:
swapon -s

from chirpstack-application-server.

brocaar avatar brocaar commented on August 9, 2024

You have to run make statics first. See the README (these commands were updated recently).

from chirpstack-application-server.

muka avatar muka commented on August 9, 2024

thanks, sorry!

from chirpstack-application-server.

muka avatar muka commented on August 9, 2024

Probably this should be updated in the Makefile under build

from chirpstack-application-server.

brocaar avatar brocaar commented on August 9, 2024

Actually that is a good one as the Makefile can detect if these folders exists, if not run these steps. See #36 for steps needed to add a recent version of NodeJS to the docker-compose environment.

from chirpstack-application-server.

brocaar avatar brocaar commented on August 9, 2024

@muka would you be able to test this branch? https://github.com/brocaar/lora-app-server/tree/improve_make

See https://github.com/brocaar/lora-app-server/pull/45/files for the changes I've made.

Please note that there were some changes in the Dockerfile too, so you might need to rebuild your container so that all requirements are installed (npm was added to build the ui).

from chirpstack-application-server.

muka avatar muka commented on August 9, 2024

Uhm.. I cannot make it work from compose (but plain make * work perfectly on my pc)

# docker-compose up --build appserver
... docker build ...
appserver_1      | Building ui
appserver_1      | /bin/sh: 1: npm: not found
appserver_1      | make: *** [ui/build] Error 127
appserver_1      | Makefile:37: recipe for target 'ui/build' failed
loraappserver_appserver_1 exited with code 2

Seems like nvm is not setting npm in the $PATH or something similar

from chirpstack-application-server.

brocaar avatar brocaar commented on August 9, 2024

UI + statics are now automatically compiled and generate on make build.

from chirpstack-application-server.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.