mirror of
https://github.com/YunoHost-Apps/codimd_ynh.git
synced 2024-09-03 18:16:32 +02:00
fix
This commit is contained in:
parent
546d52b2ba
commit
a489492a49
2 changed files with 10 additions and 6 deletions
|
@ -1,8 +1,10 @@
|
||||||
var path = require('path');
|
const path = require('path')
|
||||||
|
const config = require('./lib/config')
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
'config': path.resolve('config.json'),
|
config: path.resolve('config.js'),
|
||||||
'migrations-path': path.resolve('lib', 'migrations'),
|
'migrations-path': path.resolve('lib', 'migrations'),
|
||||||
'models-path': path.resolve('lib', 'models'),
|
'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__'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -112,10 +112,12 @@ ynh_add_nginx_config
|
||||||
#==============================================
|
#==============================================
|
||||||
ynh_script_progression --message="Building CodiMD... (this will take some time and resources!)" --weight=24
|
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
|
pushd "$final_path" || ynh_die
|
||||||
ynh_use_nodejs
|
ynh_use_nodejs
|
||||||
ynh_exec_warn_less bin/setup
|
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
|
popd || ynh_die
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue