Skip to content
Snippets Groups Projects
Commit 86934981 authored by Timothee P's avatar Timothee P :sunflower:
Browse files

change doc

ker settings
parent 20e95118
No related branches found
No related tags found
3 merge requests!3add export-geojson & fix slug vs title in feature_list route,!2add extra_form to feature_edit,!1format date for derniers signalements, detect click outside menu dropdown and...
module.exports = {
root: true,
env: {
node: true
},
'extends': [
'plugin:vue/essential',
'eslint:recommended'
],
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off'
},
parserOptions: {
parser: 'babel-eslint'
}
}
\ No newline at end of file
......@@ -6,8 +6,9 @@ RUN npm install -g npm@latest
COPY package*.json ./
RUN npm install
COPY dist dist
#RUN npm run build
#COPY dist dist
COPY . .
RUN npm run build
FROM nginx
......
# geocontrib-pwa
# geocontrib-frontend
## Project setup
```
......@@ -22,3 +22,27 @@ npm run lint
### Customize configuration
See [Configuration Reference](https://cli.vuejs.org/config/).
## Docker
Lancer un build
```
npm run build
```
Créér une image docker
```
docker-compose build
```
puis
```
docker-compose push
```
Aller sur la VM geocontrib, (demander l'accès si besoin), aller dans ```/opt/geocontrib/[user]``` et ensuite :
```
docker-compose pull
```
et
```
docker-compose up -d
```
\ No newline at end of file
......@@ -2,6 +2,7 @@
version: "3"
services:
geocontrib-front:
image: neogeo/geocontrib-front:tim
build: .
ports:
- 8080:80
......
......@@ -96,7 +96,7 @@
export default {
name: "Index",
/* data() {
/* data() {
return {
projects: null,
};
......@@ -108,7 +108,7 @@ export default {
APPLICATION_ABSTRACT: () => process.env.VUE_APP_APPLICATION_ABSTRACT,
},
created() {
// this.getProjects();
// this.getProjects();
},
methods: {
/* getProjects() {
......
......@@ -123,7 +123,7 @@ export default {
axios.get("http://localhost:8000/api/projet/1-vuetification/utilisateurs")
.then(response => this.user = response.data.members)
.catch(error => {
console.log(error)
throw(error)
})
},
getProjects() {
......@@ -132,7 +132,7 @@ export default {
// .then((response) => (this.projects = response.data.projects))
.then((response) => (this.projects = response.data))
.catch((error) => {
console.log(error);
throw(error);
});
},
},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment