From f5f18f647b3ea66ba19899c692fe98ba0d0d8429 Mon Sep 17 00:00:00 2001 From: rafi59 Date: Thu, 5 Oct 2017 21:37:08 +0200 Subject: [PATCH] [fix] Install --- scripts/install | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/scripts/install b/scripts/install index 0d80e08..b998c1b 100755 --- a/scripts/install +++ b/scripts/install @@ -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