Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Capistrano to deploy LOC M2BF2 converter to AWS #22

Open
jgreben opened this issue Sep 12, 2017 · 0 comments
Open

Use Capistrano to deploy LOC M2BF2 converter to AWS #22

jgreben opened this issue Sep 12, 2017 · 0 comments

Comments

@jgreben
Copy link
Contributor

jgreben commented Sep 12, 2017

Example to be modified as needed:

namespace :loc do

  desc 'git clone LOC marc2bibframe2 (if it does not exist already)'
  task :clone_marc2bibframe2 do
    on roles(:web) do
      cmd  = "cd #{shared_path} && "
      cmd += "if [ ! -d loc_marc2bibframe2 ]; then "
      cmd += "  git clone https://github.com/lcnetdev/marc2bibframe2.git loc_marc2bibframe2; "
      cmd += "fi"
      execute cmd
    end
  end

  desc 'git pull master for LOC marc2bibframe2'
  task update_marc2bibframe2: :clone_marc2bibframe2 do
    on roles(:web) do
      execute "cd #{shared_path}/loc_marc2bibframe2 && git pull origin master"
    end
  end

end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant