Skip to content
This repository has been archived by the owner on May 28, 2018. It is now read-only.

Commit

Permalink
set API_URI env variable for front build
Browse files Browse the repository at this point in the history
  • Loading branch information
nbrohee committed Mar 31, 2017
1 parent 4ecdba7 commit 020e7cc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client/webpack.config.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@ import WebpackMd5Hash from 'webpack-md5-hash'
import HtmlWebpackPlugin from 'html-webpack-plugin'
import autoprefixer from 'autoprefixer'

/*global API_URI*/
const GLOBALS = {
'process.env.NODE_ENV': JSON.stringify('production'),
__DEV__: false,
API_URI: JSON.stringify('http://vps295137.ovh.net:3004/api')
API_URI: API_URI ? JSON.stringify(API_URI) : JSON.stringify('https://etudiant-entrepreneur.herokuapp.com/api')
}

export default {
Expand Down
1 change: 1 addition & 0 deletions tools/devDeploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@ git checkout development

echo 'Set env variables'
export CORS_ORIGIN=http://vps295137.ovh.net
export API_URI=http://vps295137.ovh.net:3004/api

npm install && npm run start:build

0 comments on commit 020e7cc

Please sign in to comment.