Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

user.meta is not a function #411

Open
pickuppdev opened this issue Dec 16, 2019 · 1 comment
Open

user.meta is not a function #411

pickuppdev opened this issue Dec 16, 2019 · 1 comment

Comments

@pickuppdev
Copy link

Tried to deploy primecms using docker
my docker look something like this

FROM <package>/node:12.12 as builder

# Install system dependencies
RUN apk update && apk add git

ARG BUILD_DIR=/root/primecms
ARG INSTALL_DIR=/var/primecms

# Create app directory
RUN mkdir -p ${BUILD_DIR}
RUN mkdir -p ${INSTALL_DIR}
WORKDIR ${BUILD_DIR}

COPY . ${BUILD_DIR}

RUN yarn install --silent
RUN yarn setup
RUN yarn compile

RUN mkdir -p ${INSTALL_DIR}/node_modules/@primecms
WORKDIR ${INSTALL_DIR}/node_modules/@primecms
RUN for dir in "${BUILD_DIR}"/packages/*; do \
        NEW_NAME="$(basename "$dir" | cut -d- -f2-)"; \
        cp -rdf "${dir}" "./${NEW_NAME}"; \
    done

WORKDIR ${INSTALL_DIR}
COPY package.deploy.json ${INSTALL_DIR}/package.json
COPY yarn.lock ${INSTALL_DIR}/yarn.lock
RUN yarn install --production --silent

then i copy over the install dir
but somehow when i run it and try to login
i keep getting the user.meta is not a function error on the getUser

but everything work fine in my local development
any idea what could have caused this?
thank you

@ChristianUlbrich
Copy link
Contributor

Initial install using yarn seems to be broken right now. If you swap yarn install --silent with npm install everything should work. This has for sure something to do with a mad yarn.lock. It does not happen, when using the latest tag v0.4.0-beta.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants