mirror of
https://github.com/roleypoly/roleypoly-v1.git
synced 2025-04-25 04:09:12 +00:00
chore: redo some debug oauth waiting strings, dockerfile
This commit is contained in:
parent
86c31126e8
commit
f6b54eb196
5 changed files with 11 additions and 11 deletions
|
@ -1,15 +1,15 @@
|
|||
FROM node:10 AS builder
|
||||
FROM node:12-alpine AS builder
|
||||
# ENV NODE_ENV production
|
||||
COPY ./UI /src/UI
|
||||
RUN cd /src/UI && yarn && yarn build
|
||||
RUN cd /src/UI && npm ci && npm run build
|
||||
|
||||
COPY ./Server /src/Server
|
||||
RUN cd /src/Server && yarn
|
||||
RUN cd /src/Server && npm ci
|
||||
|
||||
RUN cp -r /src/UI/build /src/Server/public
|
||||
|
||||
|
||||
FROM mhart/alpine-node:10
|
||||
FROM node:12-alpine
|
||||
ENV NODE_ENV production
|
||||
WORKDIR /dist
|
||||
EXPOSE 6769
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import superagent from 'superagent'
|
||||
import { history } from './router/history'
|
||||
import { history } from '../router/history'
|
||||
|
||||
export const fetchServers = async dispatch => {
|
||||
const rsp = await superagent.get('/api/servers')
|
||||
|
|
|
@ -5,7 +5,7 @@ import superagent from 'superagent'
|
|||
class OauthCallback extends Component {
|
||||
state = {
|
||||
notReady: true,
|
||||
message: 'chotto matte kudasai...',
|
||||
message: 'giving discord the good news...',
|
||||
url: null,
|
||||
}
|
||||
|
||||
|
@ -28,4 +28,4 @@ class OauthCallback extends Component {
|
|||
}
|
||||
}
|
||||
|
||||
export default connect(OauthCallback)
|
||||
export default connect()(OauthCallback)
|
||||
|
|
|
@ -7,7 +7,7 @@ import { fetchServers } from '../../actions'
|
|||
class OauthCallback extends Component {
|
||||
state = {
|
||||
notReady: true,
|
||||
message: 'chotto matte kudasai...',
|
||||
message: 'shaking hands with discord...',
|
||||
redirect: '/s',
|
||||
}
|
||||
|
||||
|
@ -83,4 +83,4 @@ class OauthCallback extends Component {
|
|||
}
|
||||
}
|
||||
|
||||
export default connect(OauthCallback)
|
||||
export default connect()(OauthCallback)
|
||||
|
|
|
@ -8,7 +8,7 @@ import { fetchServers } from '../../actions'
|
|||
class OauthCallback extends Component {
|
||||
state = {
|
||||
notReady: true,
|
||||
message: 'chotto matte kudasai...',
|
||||
message: 'sending you to discord...',
|
||||
redirect: '/s',
|
||||
url: null,
|
||||
}
|
||||
|
@ -82,4 +82,4 @@ class OauthCallback extends Component {
|
|||
}
|
||||
}
|
||||
|
||||
export default connect(OauthCallback)
|
||||
export default connect()(OauthCallback)
|
||||
|
|
Loading…
Add table
Reference in a new issue