Skip to content

Commit

Permalink
firebase deploy設定
Browse files Browse the repository at this point in the history
  • Loading branch information
cola119 committed Jun 8, 2019
1 parent 31988f4 commit 7b11de6
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .firebaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"projects": {
"default": "trecamp-55883"
}
}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
/.pnp
.pnp.js

.firebase

# testing
/coverage

Expand Down
10 changes: 10 additions & 0 deletions firebase.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"hosting": {
"public": "build",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
]
}
}
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
"eject": "react-scripts eject",
"deploy": "yarn build && firebase deploy"
},
"eslintConfig": {
"extends": "react-app"
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/components/Molecules/LoginForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const LoginForm: React.FC<{}> = () => {
const changePassword = (e: React.ChangeEvent<HTMLInputElement>) => setPassword(e.target.value);

return (
<form action="" method="POST">
<form action="https://trecamp-server.web.app/login" method="POST">
<TextInput
name="email"
type="email"
Expand Down
2 changes: 1 addition & 1 deletion src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import ReactDOM from 'react-dom';
import { BrowserRouter as Router, Route } from 'react-router-dom';
import App from './App';
import App from './components/App';
import * as serviceWorker from './serviceWorker';
import LoginForm from './components/Molecules/LoginForm';
import CssBaseline from '@material-ui/core/CssBaseline';
Expand Down

0 comments on commit 7b11de6

Please sign in to comment.