Upgraded Kallithea, now it looks incomplete?

Issue #312 resolved
zwarmapapa created an issue

I just upgraded Kallithea, now it looks like certain things (CSS etc) didn't load.

My upgrade script is:

    cd /etc/kallithea/source
    stop_kallithea
    hg pull
    hg update
    python setup.py build
    python setup.py install
    cd /etc/kallithea
    alembic -c production.ini upgrade head
    start_kallithea

I see no errors in the console. The version prior to upgrading was from October 2017.

Did I miss something? Did I forget to execute a command somewhere?

Comments (8)

  1. zwarmapapa reporter

    Thanks, it's working.

    Note though, my nodejs/npm was outdated, so I first had to upgrade that with:

    rm -R /usr/local/lib/node_modules
    npm cache clean -f
    npm install -g n
    n 6.12.0
    

    Then I could add "npm install" to the upgrade script:

    cd /etc/kallithea/source
    stop_kallithea
    hg pull
    hg update
    npm install
    npm run less
    python setup.py build
    python setup.py install
    cd /etc/kallithea
    alembic -c production.ini upgrade head
    start_kallithea
    
  2. Mads Kiilerich

    What symptoms did you see from nodejs/npm being outdated? I wonder if package.json somehow could declare a minimum version?

    I would also expect the npm install step to take care of installing the right versions in node_modules ... but I guess it was a bootstrap problem?

    Also, it seems like your script lack npm run less ?

  3. zwarmapapa reporter

    It said something like that it requires NPM of at least 0.12.4. I had 0.10.8 or something like that.

    I don't know the exact numbers, but I remember I had 0.10.x, and it required 0.12.x.

    Edit: Ow I forgot to add "npm run less" to the update script, thank you so much for letting me know! Otherwise it would have probably bugged again during the next update!

  4. Log in to comment