1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/codimd_ynh.git synced 2024-09-03 18:16:32 +02:00
This commit is contained in:
ericgaspar 2021-05-08 15:44:58 +02:00
parent 546d52b2ba
commit a489492a49
No known key found for this signature in database
GPG key ID: 574F281483054D44
2 changed files with 10 additions and 6 deletions

View file

@ -1,8 +1,10 @@
var path = require('path');
const path = require('path')
const config = require('./lib/config')
module.exports = {
'config': path.resolve('config.json'),
config: path.resolve('config.js'),
'migrations-path': path.resolve('lib', 'migrations'),
'models-path': path.resolve('lib', 'models'),
'url': 'postgres://__DB_NAME__:__DB_PWD__@localhost:5432/__DB_NAME__'
url: 'postgres://__DB_NAME__:__DB_PWD__@localhost:5432/__DB_NAME__'
}

View file

@ -112,10 +112,12 @@ ynh_add_nginx_config
#==============================================
ynh_script_progression --message="Building CodiMD... (this will take some time and resources!)" --weight=24
chown -R $app: $final_path
pushd "$final_path" || ynh_die
ynh_use_nodejs
ynh_exec_warn_less bin/setup
ynh_exec_warn_less ynh_npm run build
ynh_exec_as $app env $ynh_node_load_PATH npm run build
popd || ynh_die
#=================================================