--frozen-locafile

This commit is contained in:
Karol Wypchlo 2021-07-26 19:06:15 +02:00
parent 23bc77061b
commit 9abdc7e6e3
6 changed files with 13 additions and 11 deletions

View File

@ -2,14 +2,16 @@
## Web application
Use `yarn workspace website start` to start the development server.
Change current directory with `cd packages/website`.
Use `yarn workspace website build` to compile the application to `/public` directory.
Use `yarn start` to start the development server.
Use `yarn build` to compile the application to `/public` directory.
You can use the below build parameters to customize your web application.
- development example `GATSBY_API_URL=https://siasky.dev yarn workspace website start`
- production example `GATSBY_API_URL=https://siasky.net yarn workspace website build`
- development example `GATSBY_API_URL=https://siasky.dev yarn start`
- production example `GATSBY_API_URL=https://siasky.net yarn build`
List of available parameters:
@ -185,8 +187,8 @@ Before pushing your code, you should verify that it will pass our online test su
**Cypress Tests**
Verify the Cypress test suite by doing the following:
1. In one terminal screen run `GATSBY_API_URL=https://siasky.net yarn workspace website serve`
1. In a second terminal screen run `yarn workspace website cypress run`
1. In one terminal screen run `GATSBY_API_URL=https://siasky.net website serve`
1. In a second terminal screen run `yarn cypress run`
## Setting up complete skynet server

View File

@ -5,7 +5,7 @@ WORKDIR /usr/app
COPY package.json yarn.lock ./
ENV NEXT_TELEMETRY_DISABLED 1
RUN yarn
RUN yarn --frozen-lockfile
COPY public ./public
COPY src ./src

View File

@ -4,7 +4,7 @@ WORKDIR /usr/app
COPY package.json yarn.lock ./
RUN yarn
RUN yarn --frozen-lockfile
COPY src/* src/

View File

@ -4,7 +4,7 @@ WORKDIR /usr/app
COPY package.json yarn.lock ./
RUN yarn
RUN yarn --frozen-lockfile
COPY src/* src/

View File

@ -12,7 +12,7 @@ RUN echo '0 * * * * /usr/app/cli/run extended > /dev/stdout' >> /etc/crontabs/ro
COPY package.json yarn.lock ./
RUN yarn
RUN yarn --frozen-lockfile
COPY src src
COPY cli cli

View File

@ -8,7 +8,7 @@ COPY package.json yarn.lock ./
ENV GATSBY_TELEMETRY_DISABLED 1
ENV CYPRESS_INSTALL_BINARY 0
RUN yarn
RUN yarn --frozen-lockfile
COPY data ./data
COPY src ./src