소스 검색

Fixed image paths

Tatiana Inama 6 년 전
부모
커밋
8ea4d3b458
4개의 변경된 파일12개의 추가작업 그리고 11개의 파일을 삭제
  1. 1 1
      ktchn/src/config.ts
  2. 5 4
      recipes/.env
  3. 5 4
      recipes/.env.production
  4. 1 2
      recipes/src/components/RecipeCard/index.tsx

+ 1 - 1
ktchn/src/config.ts

@@ -6,7 +6,7 @@ export const config = {
 	db: {
 		uri: process.env.MONGODB_URI || 'mongodb://127.0.0.1:27017/api',
 	},
-	public_assets_path: process.env.PUBLIC_ASSETS_PATH || process.env.HOME,
+	public_assets_path: process.env.PUBLIC_ASSETS_PATH || '/mnt/c/Users/tati/git/kitchn/ktchn/src/public',
 };
 
 export default config;

+ 5 - 4
recipes/.env

@@ -1,6 +1,7 @@
 SASS_PATH=node_modules:src
 NODE_PATH=src/
-REACT_APP_API='http://192.168.2.199:3000'
-REACT_APP_API_RECIPES='http://192.168.2.199:3000/recipes'
-REACT_APP_API_PLANNER='http://192.168.2.199:3000/planner'
-REACT_APP_API_SHOPPING='http://192.168.2.199:3000/shopping'
+REACT_APP_API=http://192.168.2.199:3000
+REACT_APP_API_RECIPES=http://192.168.2.199:3000/recipes
+REACT_APP_API_PLANNER=http://192.168.2.199:3000/planner
+REACT_APP_API_SHOPPING=http://192.168.2.199:3000/shopping
+REACT_APP_IMG=http://192.168.2.199:3000

+ 5 - 4
recipes/.env.production

@@ -1,6 +1,7 @@
 SASS_PATH=node_modules:src
 NODE_PATH=src/
-REACT_APP_API='/api/'
-REACT_APP_API_RECIPES='/api/recipes'
-REACT_APP_API_PLANNER='/api/planner'
-REACT_APP_API_SHOPPING='/api/shopping'
+REACT_APP_API=/api/
+REACT_APP_API_RECIPES=/api/recipes
+REACT_APP_API_PLANNER=/api/planner
+REACT_APP_API_SHOPPING=/api/shopping
+REACT_APP_IMG=/img

+ 1 - 2
recipes/src/components/RecipeCard/index.tsx

@@ -7,7 +7,7 @@ import StrikeText from 'components/StrikeText';
 import moment from 'moment';
 
 import sample_img from "components/Card/sample.png";
-const API: string = process.env.REACT_APP_API || '';
+const API: string = process.env.REACT_APP_IMG || '';
 
 import './styles.scss';
 
@@ -73,7 +73,6 @@ const CBKRecipeCard: React.FunctionComponent<RecipeCardProps> = ({ recipe }) =>
       <div className="cbk-recipe-card__content">
         <div className="cbk-recipe-card__content__ingredients">
           <ScaleTool ingredients={recipe.ingredients}></ScaleTool>
-          {/* <Ingredients ingredients={recipe.ingredients} /> */}
         </div>
         <div className="cbk-recipe-card__content__instructions">
           <ol>