Skip to content

Commit

Permalink
Renome URL_SERVEUR en URL_API
Browse files Browse the repository at this point in the history
  • Loading branch information
etienneCharignon committed Apr 27, 2020
1 parent 802012e commit 1cb30cc
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM node:10 as node

ARG URL_SERVEUR
ENV URL_SERVEUR ${URL_SERVEUR}
ARG URL_API
ENV URL_API ${URL_API}
ARG JETON_CLIENT_ROLLBAR
ENV JETON_CLIENT_ROLLBAR ${JETON_CLIENT_ROLLBAR}

Expand Down
2 changes: 1 addition & 1 deletion src/situations/commun/infra/depot_journal.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default class DepotJournal {
return new Promise((resolve, reject) => {
this.$.ajax({
type: 'POST',
url: `${process.env.URL_SERVEUR}/api/evenements`,
url: `${process.env.URL_API}/api/evenements`,
data: JSON.stringify(payload),
contentType: 'application/json; charset=utf-8',
retryTimeout: timeout,
Expand Down
2 changes: 1 addition & 1 deletion src/situations/commun/infra/registre_utilisateur.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export const CLEF_IDENTIFIANT = 'identifiantUtilisateur';
export const CHANGEMENT_CONNEXION = 'changementConnexion';

export default class RegistreUtilisateur extends EventEmitter {
constructor ($ = jQuery, urlServeur = process.env.URL_SERVEUR) {
constructor ($ = jQuery, urlServeur = process.env.URL_API) {
super();
this.$ = $;
this.urlServeur = urlServeur;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import DepotRessourcesCommunes from 'commun/infra/depot_ressources_communes';

export default class DepotRessourcesQuestionsBase extends DepotRessourcesCommunes {
constructor (chargeurs, sonConsigne, sonConsigneTransition, urlServeur = process.env.URL_SERVEUR) {
constructor (chargeurs, sonConsigne, sonConsigneTransition, urlServeur = process.env.URL_API) {
super(chargeurs, sonConsigne, sonConsigneTransition);
this.urlServeur = urlServeur;
}
Expand Down
2 changes: 1 addition & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ module.exports = {
inject: 'head'
}),
...templatesSituations,
new webpack.EnvironmentPlugin(['URL_SERVEUR', 'JETON_CLIENT_ROLLBAR', 'SOURCE_VERSION']),
new webpack.EnvironmentPlugin(['URL_API', 'JETON_CLIENT_ROLLBAR', 'SOURCE_VERSION']),
new FaviconsWebpackPlugin('./src/public/logo.svg'),
new VueLoaderPlugin()
],
Expand Down

0 comments on commit 1cb30cc

Please sign in to comment.