Skip to content

Commit

Permalink
fix setting deploy autoload
Browse files Browse the repository at this point in the history
  • Loading branch information
mihalskiy committed Dec 10, 2018
1 parent c12b6ea commit ec1c2ab
Show file tree
Hide file tree
Showing 14 changed files with 28 additions and 13,789 deletions.
File renamed without changes.
6 changes: 3 additions & 3 deletions client/package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "portfolio-2018",
"version": "0.1.0",
"homepage": "http://www.nurmaget.com",
"homepage": "http://nurmaget.com",
"private": true,
"proxy": "http://www.nurmaget.com",
"proxy": "http://nurmaget.com:8000",
"devDependencies": {
"babel-eslint": "^7.2.3",
"eslint": "^4.1.1",
Expand Down Expand Up @@ -38,7 +38,7 @@
},
"scripts": {
"start": "react-scripts start",
"build": "PUBLIC_URL=http://www.nurmaget.com react-scripts build",
"build": "PUBLIC_URL=http://nurmaget.com react-scripts build",
"test": "react-scripts test --env=jsdom",
"eject": "react-scripts eject"
}
Expand Down
8 changes: 4 additions & 4 deletions client/src/app/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,10 @@ class App extends Component {
</Helmet>
<Switch location={location}>
<Route exact path="/" render={props => <Home {...props} status={status} />} />
<Route path="/projects/contact" render={props => <Contact {...props} status={status} />} />
<Route path="/projects/price" render={props => <ProjectSPR {...props} status={status} />} />
<Route path="/projects/portfolio" render={props => <ProjectPortfolio {...props} status={status} />} />
<Route path="/projects/slice" render={props => <ProjectSlice {...props} status={status} />} />
<Route path="/contact" render={props => <Contact {...props} status={status} />} />
<Route path="/price" render={props => <ProjectSPR {...props} status={status} />} />
<Route path="/portfolio" render={props => <ProjectPortfolio {...props} status={status} />} />
<Route path="/slice" render={props => <ProjectSlice {...props} status={status} />} />
<Route render={props => <NotFound {...props} status={status} />} />
</Switch>
</MainContent>
Expand Down
6 changes: 3 additions & 3 deletions client/src/screens/Home.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ export default class Home extends Component {
title="ПРИМЕРЫ НАШИХ РАБОТ"
description="За время своей работы мы разработали более 600 лендингов работающих во всех странах мира и генерирующих своим заказчикам тысячи обращений в сутки. Большинство клиентов заказали у нас по несколько лендингов на каждое направление своего бизнеса"
buttonText="Посмотреть все роботы"
buttonTo="/projects/portfolio"
buttonTo="/portfolio"
imageSrc={[`${sprProject} 980w, ${sprProjectLarge} 1376w`]}
imageAlt={['Smart Sparrow lesson builder']}
imagePlaceholder={[sprProjectPlaceholder]}
Expand All @@ -185,7 +185,7 @@ export default class Home extends Component {
title="СКОЛЬКО СТОИТ?"
description="Наши цены вас приятно удивят, оплата поэтапная любым удобным способом"
buttonText="Посмотреть росценки"
buttonLink="/projects/price"
buttonLink="/price"
imageSrc={[
`${gamestackLogin} 254w, ${gamestackLoginLarge} 508w`,
`${gamestackList} 254w, ${gamestackListLarge} 508w`,
Expand All @@ -208,7 +208,7 @@ export default class Home extends Component {
title="Блог"
description="Выбор технологий для большого и не очень большого веб-проекта"
buttonText="Перейти к блогу"
buttonTo="/projects/slice"
buttonTo="/slice"
imageSrc={[`${sliceProject} 980w, ${sliceProjectLarge} 1376w`]}
imageAlt={['Annotating a biomedical image in the Slice app']}
imagePlaceholder={[sliceProjectPlaceholder]}
Expand Down
2 changes: 1 addition & 1 deletion client/src/screens/ProjectPortfolio.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ let ProjectPortfolio = ({ status, table = {} }) => (
<NavPortfolio
title={title}
description={description}
url="/projects/contact"
url="/contact"
src={backgroundSprPlaceholder}
/>
<ProjectSection>
Expand Down
2 changes: 1 addition & 1 deletion client/src/screens/ProjectSPR.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class ProjectSPR extends Component {
<ProjectHeader
title={title}
description={description}
url="/projects/contact"
url="/contact"
roles={roles}
/>
<ProjectSection>
Expand Down
9 changes: 7 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,20 @@ services:
server:
build:
context: ./server/
command: npm start & sequelize db:migrate
command: npm start & npm run db:init
volumes:
- ./server/:/usr/app
- /usr/app/node_modules
ports:
- "8000:8000"
# env_file: ./server/.env # TODO - uncomment this to auto-load your .env file!
environment:
# env_file: ../server/.env # TODO - uncomment this to auto-load your .env file!
CONNECTION_STRING_DEV: postgres://user:password@db/db
MAIL_HOST: ${MAIL_HOST}
MAIL_USER: ${MAIL_USER}
MAIL_PASS: ${MAIL_PASS}
MAIL_SERVICE: ${MAIL_SERVICE}
PUBLIC_URL: http://nurmaget.com
links:
- db
depends_on:
Expand Down
3 changes: 0 additions & 3 deletions init.sql

This file was deleted.

Loading

0 comments on commit ec1c2ab

Please sign in to comment.