1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/diaspora_ynh.git synced 2024-09-03 18:26:13 +02:00

[fix] Install

This commit is contained in:
rafi59 2017-10-05 21:37:08 +02:00
parent f5cf44b665
commit f5f18f647b

View file

@ -76,9 +76,7 @@ ynh_app_setting_set $app port $port
# INSTALL DEPENDENCIES
#=================================================
ynh_install_app_dependencies gawk libyaml-dev libsqlite3-dev sqlite3 autoconf libgdbm-dev libncurses5-dev automake bison libffi-dev \
build-essential libssl-dev libcurl4-openssl-dev libxml2-dev libxslt-dev imagemagick ghostscript git curl libmysqlclient-dev \
libmagickwand-dev redis-server
ynh_install_app_dependencies build-essential libssl-dev libcurl4-openssl-dev libxml2-dev libxslt-dev imagemagick ghostscript curl libmagickwand-dev git libmysqlclient-dev redis-server nodejs
#=================================================
# CREATE A MYSQL DATABASE
@ -96,7 +94,14 @@ ynh_mysql_setup_db $db_name $db_name
ynh_app_setting_set $app final_path $final_path
# Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source "$final_path"
su diaspora
cd ~
git clone -b master https://github.com/diaspora/diaspora.git
cd diaspora
config/database.yml
cp config/diaspora.yml
gem install bundler
RAILS_ENV=production bin/bundle install --jobs $(nproc) --deployment --without test development --with mysql
#=================================================
# NGINX CONFIGURATION
@ -112,18 +117,9 @@ ynh_add_nginx_config
# Create a system user
ynh_system_user_create $app
#=================================================
# PHP-FPM CONFIGURATION
#=================================================
# Create a dedicated php-fpm config
ynh_fpm_config
#=================================================
# SPECIFIC SETUP
#=================================================
# ...
#=================================================
#=================================================
# SETUP SYSTEMD