From 421f913b5b5fa88ce50bc01b774069e7d6680d2b Mon Sep 17 00:00:00 2001 From: 0x1eef <0x1eef@protonmail.com> Date: Sat, 16 Mar 2024 03:53:11 -0300 Subject: [PATCH] Remove rake --- rake/tasks/deploy.rake | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100644 rake/tasks/deploy.rake diff --git a/rake/tasks/deploy.rake b/rake/tasks/deploy.rake deleted file mode 100644 index 3a86a16..0000000 --- a/rake/tasks/deploy.rake +++ /dev/null @@ -1,27 +0,0 @@ -## -# frozen_string_literal: true - -desc "Configure environment for deployment" -task "deploy:env" do - ENV["buildenv"] = "production" - print "Set $NODE_ENV to 'production'", "\n" -end - -desc "Deploy the website" -task "deploy" => %i[deploy:env nanoc:clean nanoc:build] do - git_branch = `git branch --show-current`.chomp - if git_branch != "production" - warn "This task must be run on the 'production' branch." - exit(1) - end - print "Wait...", "\n" - sh( - "rsync", - "--delete", "-rvah", - "--chmod=Fu=r,Fg=r,Du=rx,Dg=rx", - "--rsync-path='/home/0x1eef/rsync.sh'", - "--exclude=audio/", - "build/al-quran/", - "0x1eef@al-quran.reflectslight.io:/mnt/www/al-quran.reflectslight.io/" - ) -end