--frozen-locafile
This commit is contained in:
parent
23bc77061b
commit
9abdc7e6e3
14
README.md
14
README.md
|
@ -2,14 +2,16 @@
|
||||||
|
|
||||||
## Web application
|
## 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.
|
You can use the below build parameters to customize your web application.
|
||||||
|
|
||||||
- development example `GATSBY_API_URL=https://siasky.dev yarn workspace website start`
|
- development example `GATSBY_API_URL=https://siasky.dev yarn start`
|
||||||
- production example `GATSBY_API_URL=https://siasky.net yarn workspace website build`
|
- production example `GATSBY_API_URL=https://siasky.net yarn build`
|
||||||
|
|
||||||
List of available parameters:
|
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**
|
**Cypress Tests**
|
||||||
Verify the Cypress test suite by doing the following:
|
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 one terminal screen run `GATSBY_API_URL=https://siasky.net website serve`
|
||||||
1. In a second terminal screen run `yarn workspace website cypress run`
|
1. In a second terminal screen run `yarn cypress run`
|
||||||
|
|
||||||
## Setting up complete skynet server
|
## Setting up complete skynet server
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@ WORKDIR /usr/app
|
||||||
COPY package.json yarn.lock ./
|
COPY package.json yarn.lock ./
|
||||||
|
|
||||||
ENV NEXT_TELEMETRY_DISABLED 1
|
ENV NEXT_TELEMETRY_DISABLED 1
|
||||||
RUN yarn
|
RUN yarn --frozen-lockfile
|
||||||
|
|
||||||
COPY public ./public
|
COPY public ./public
|
||||||
COPY src ./src
|
COPY src ./src
|
||||||
|
|
|
@ -4,7 +4,7 @@ WORKDIR /usr/app
|
||||||
|
|
||||||
COPY package.json yarn.lock ./
|
COPY package.json yarn.lock ./
|
||||||
|
|
||||||
RUN yarn
|
RUN yarn --frozen-lockfile
|
||||||
|
|
||||||
COPY src/* src/
|
COPY src/* src/
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@ WORKDIR /usr/app
|
||||||
|
|
||||||
COPY package.json yarn.lock ./
|
COPY package.json yarn.lock ./
|
||||||
|
|
||||||
RUN yarn
|
RUN yarn --frozen-lockfile
|
||||||
|
|
||||||
COPY src/* src/
|
COPY src/* src/
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,7 @@ RUN echo '0 * * * * /usr/app/cli/run extended > /dev/stdout' >> /etc/crontabs/ro
|
||||||
|
|
||||||
COPY package.json yarn.lock ./
|
COPY package.json yarn.lock ./
|
||||||
|
|
||||||
RUN yarn
|
RUN yarn --frozen-lockfile
|
||||||
|
|
||||||
COPY src src
|
COPY src src
|
||||||
COPY cli cli
|
COPY cli cli
|
||||||
|
|
|
@ -8,7 +8,7 @@ COPY package.json yarn.lock ./
|
||||||
|
|
||||||
ENV GATSBY_TELEMETRY_DISABLED 1
|
ENV GATSBY_TELEMETRY_DISABLED 1
|
||||||
ENV CYPRESS_INSTALL_BINARY 0
|
ENV CYPRESS_INSTALL_BINARY 0
|
||||||
RUN yarn
|
RUN yarn --frozen-lockfile
|
||||||
|
|
||||||
COPY data ./data
|
COPY data ./data
|
||||||
COPY src ./src
|
COPY src ./src
|
||||||
|
|
Reference in New Issue