Migrate to garage
This commit is contained in:
parent
8a374d3402
commit
8f3b18f628
5 changed files with 12 additions and 7 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,3 +1,4 @@
|
||||||
static/
|
static/
|
||||||
node_modules/
|
node_modules/
|
||||||
*.swp
|
*.swp
|
||||||
|
.awsclirc
|
||||||
|
|
3
.webpull
3
.webpull
|
@ -1,3 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
npm install
|
|
||||||
node render.js
|
|
7
deploy
Executable file
7
deploy
Executable file
|
@ -0,0 +1,7 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
shopt -s expand_aliases
|
||||||
|
source .awsclirc
|
||||||
|
npm install
|
||||||
|
node render.js
|
||||||
|
awsdf s3 sync static s3://deuxfleurs.fr
|
6
package-lock.json
generated
6
package-lock.json
generated
|
@ -252,9 +252,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"lodash": {
|
"lodash": {
|
||||||
"version": "4.17.15",
|
"version": "4.17.20",
|
||||||
"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.15.tgz",
|
"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.20.tgz",
|
||||||
"integrity": "sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A=="
|
"integrity": "sha512-PlhdFcillOINfeV7Ni6oF1TAEayyZBoZ8bcshTHqOYJYlrqzRK5hagpagky5o4HfCzzd1TRkXPMFq6cKk9rGmA=="
|
||||||
},
|
},
|
||||||
"longest": {
|
"longest": {
|
||||||
"version": "1.0.1",
|
"version": "1.0.1",
|
||||||
|
|
|
@ -98,7 +98,7 @@ const propagate_nice_name = prefix => tree => {
|
||||||
if (splitted.length > 0) {
|
if (splitted.length > 0) {
|
||||||
tree.nice_path = splitted.slice(0, -1)
|
tree.nice_path = splitted.slice(0, -1)
|
||||||
tree.nice_name = splitted[splitted.length - 1].split('.')[0]
|
tree.nice_name = splitted[splitted.length - 1].split('.')[0]
|
||||||
tree.url = without_prefix
|
tree.url = tree.type == 'folder' ? without_prefix + '/' : without_prefix
|
||||||
log('[propagate_nice_name]', [...tree.nice_path, tree.nice_name].join('|'))
|
log('[propagate_nice_name]', [...tree.nice_path, tree.nice_name].join('|'))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue