From 9d73a23ac8fbe8b45071afb3ee9b9ad7700b9ecf Mon Sep 17 00:00:00 2001 From: nemsia Date: Thu, 27 Apr 2017 22:34:49 +0200 Subject: [PATCH 1/8] [enh] Install tagged release --- scripts/install | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/install b/scripts/install index ed2b1e7..67e69b0 100644 --- a/scripts/install +++ b/scripts/install @@ -87,6 +87,8 @@ sudo su - $app < Date: Fri, 28 Apr 2017 13:30:04 +0200 Subject: [PATCH 2/8] [enh] Install tagged releases --- scripts/install | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/install b/scripts/install index ed2b1e7..67e69b0 100644 --- a/scripts/install +++ b/scripts/install @@ -87,6 +87,8 @@ sudo su - $app < Date: Fri, 28 Apr 2017 18:02:28 +0200 Subject: [PATCH 3/8] [fix] Install tagged release --- scripts/install | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/install b/scripts/install index 67e69b0..d58f08e 100644 --- a/scripts/install +++ b/scripts/install @@ -82,12 +82,13 @@ sudo su -c "psql" postgres <<< \ ynh_psql_create_db_without_password "$app" sudo systemctl restart postgresql -# Download all Ruby source +# Download all sources rbenv, ruby and mastodon +pushd $final_path/live sudo su - $app < Date: Fri, 28 Apr 2017 18:07:45 +0200 Subject: [PATCH 4/8] [fix] Upgrade on tagged release --- scripts/upgrade | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/upgrade b/scripts/upgrade index 076e3fb..bd9c46a 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -38,8 +38,9 @@ sudo cp ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/$app.conf sudo systemctl stop mastodon-*.service # Update Mastodon +pushd /opt/mastodon/live sudo su - $app < Date: Fri, 28 Apr 2017 18:37:00 +0200 Subject: [PATCH 5/8] [fix] Error on upgrade with yarn.lock --- scripts/upgrade | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/upgrade b/scripts/upgrade index bd9c46a..f909d05 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -45,7 +45,7 @@ git fetch git pull https://github.com/tootsuite/mastodon.git master git checkout $(git tag | tail -n 1) bin/bundle install -yarn install --production +yarn install --pure-lockfile RAILS_ENV=production bundle exec rails assets:clean RAILS_ENV=production bundle exec rails assets:precompile RAILS_ENV=production bundle exec rails db:migrate From 1e9438883eaacd698eafe2a62a8906c595328975 Mon Sep 17 00:00:00 2001 From: nemsia Date: Fri, 28 Apr 2017 18:54:02 +0200 Subject: [PATCH 6/8] upgrade on master --- scripts/upgrade | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/upgrade b/scripts/upgrade index f909d05..e3afa94 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -43,7 +43,7 @@ sudo su - $app < Date: Sat, 29 Apr 2017 22:02:55 +0200 Subject: [PATCH 7/8] [FIX] Switch to tagged release --- scripts/install | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/install b/scripts/install index d58f08e..55ab135 100644 --- a/scripts/install +++ b/scripts/install @@ -83,15 +83,16 @@ ynh_psql_create_db_without_password "$app" sudo systemctl restart postgresql # Download all sources rbenv, ruby and mastodon -pushd $final_path/live sudo su - $app < Date: Sat, 29 Apr 2017 22:05:18 +0200 Subject: [PATCH 8/8] [FIX] Upgrade with tagged release --- scripts/upgrade | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/upgrade b/scripts/upgrade index e3afa94..f909d05 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -43,7 +43,7 @@ sudo su - $app <