{"id":13741402,"url":"https://github.com/eopas/eopas","last_synced_at":"2025-05-08T21:33:40.854Z","repository":{"id":1374984,"uuid":"1327448","full_name":"eopas/eopas","owner":"eopas","description":"ETHNOER Online Presentation and Annotation System","archived":false,"fork":false,"pushed_at":"2023-05-30T00:00:05.000Z","size":4119,"stargazers_count":9,"open_issues_count":15,"forks_count":6,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-08-04T04:09:08.316Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://eopas.github.com/eopas","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eopas.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2011-02-04T09:17:00.000Z","updated_at":"2023-05-30T00:00:10.000Z","dependencies_parsed_at":"2023-07-06T19:46:47.248Z","dependency_job_id":null,"html_url":"https://github.com/eopas/eopas","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eopas%2Feopas","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eopas%2Feopas/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eopas%2Feopas/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eopas%2Feopas/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eopas","download_url":"https://codeload.github.com/eopas/eopas/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224774778,"owners_count":17367795,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-03T04:00:58.859Z","updated_at":"2024-11-15T11:31:14.252Z","avatar_url":"https://github.com/eopas.png","language":"Ruby","funding_links":[],"categories":["Software"],"sub_categories":["Utilities"],"readme":"# Note that this site is no longer functioning and the code is left here as a legacy but is not being updated\n\n\n# Install\n\nThese instructions are geared towards installing the EOPAS application on an\nUbuntu Precise LTS system. These instructions assume you will be using capistrano\nto deploy the application.\n\n## Set up the database\n\nInstall MySQL if it isn't already installed\n\n``` bash\nsudo apt-get install mysql-server\n```\n\nCreate the EOPAS database and user\n\n```\nmysql\nmysql\u003e CREATE DATABASE eopas;\nmysql\u003e GRANT ALL ON eopas.* to eopas@`%` IDENTIFIED BY 'PASSWORD'\n```\n\nEdit config/database.yml to suit database name, username and password.\n\n\n## Deploy the application to the EOPAS server\n\nWe assume you are using Ubuntu Precise.\n\nFirst set up the **deploy** user\n\n``` bash\nsudo adduser deploy\n```\n\nYou may find deployments easier if you set up your SSH key on the deploy user's\naccount.\n\n``` bash\nssh-copy-id $USER@server_name.example.org\n```\n\nCreate the directory the application will be deployed to and set the permissions.\n\n``` bash\nsudo mkdir -p /srv/www/eopas\nsudo chown deploy.deploy /srv/www/eopas\n```\n\nInstall all the required dependencies on the server\n\n``` bash\nsudo apt-get update\nsudo apt-get install ruby1.9.3 git libxml2-dev libxslt1-dev libmysqlclient-dev \\\n                     libsqlite3-dev build-essentials\nsudo gem1.9.3 install bundler\nsudo apt-get install libavcodec-extra-53 libavdevice-extra-53 libavfilter-extra-0 \\\n                     libavformat-extra-53 libpostproc-extra-52 libswscale-extra-2 libav-tools\n\n```\n\nInstall capistrano on your local machine\n\n``` bash\ngem install capistrano\n```\n\nSetup the application for deployment the first time\n\n``` bash\ncap deploy:setup\n```\n\nCheck everything is ready\n\n``` bash\ncap deploy:check\n```\n\nDeploy the application\n\n``` bash\ncap deploy\n```\n\n* Run the migrations\n\n``` bash\ncap deploy:migrations\n```\n\nYou will also need to deploy an nginx configuration that looks something like\n```\nserver {\n  listen [::]:80;\n  server_name www.eopas.org 103.6.254.249;\n\n  access_log  /srv/www/eopas/shared/log/access.log;\n  error_log  /srv/www/eopas/shared/log/error.log;\n\n  location / {\n    error_page 500 502 503 504 /500.html;\n\n    root /srv/www/eopas/current/public;\n\n    try_files /system/maintenance.html $uri @app;\n  }\n\n  location @app {\n    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;\n    proxy_set_header Host $http_host;\n    proxy_redirect off;\n\n    proxy_pass http://unix:/srv/www/eopas/shared/pids/unicorn.socket;\n  }\n\n}\n\n```\n\n## Set up the application\n\n\nBrowse to http://DOMAIN and follow the prompts\n\n\n## Information about automatic transcoding\n\n\nWhen you deploy with capistrano, the delayed\\_jobs gem will be set up for you\nand take care of the transcoding tasks necessary after uploading audio and video files.\nNormally, everything should be fine. But occasionally you may need to deal with stuck\njobs or other issues.\n\n* Running the delayed\\_jobs demon by hand if necessary\n\n    RAILS_ENV=production bundle exec rake jobs:work\n\n* Clearing the jobs queue\n\n    RAILS_ENV=production bundle exec rake jobs:clear\n\n* Checking the jobs queue as an admin user\n\n    http://DOMAIN/delayed_job_admin\n\n\n## Updating the language codes\n\n\nThe language codes in use for EOPAS are sourced from http://www.ethnologue.com/codes/.\n\nTo update them:\n\n* Download the latest version of the three tables from\n\n    http://www.ethnologue.com/codes/default.asp#downloading\n\n* Copy them into the data directory, overwriting the existing files there\n\nDone!\n\n\n## Transcoding XML files\n\nYou can use the scripts in the bin directory to directly deal with XML files.\nUse the following formats: Elan, Toolbox, Transcriber, Eopas\n\n* Transcoding to eopas: e.g.\n\n    rails runner bin/transcode.rb features/test_data/toolbox2.xml Toolbox\n\n* Validating an XML file: e.g.\n\n    rails runner bin/validate.rb features/test_data/toolbox2.xml Toolbox\n\n* Run an xsl tranform: e.g.\n\n    rails runner bin/xslt.rb features/test_data/toolbox2.xml public/XSLT/fixToolbox.xsl\n\nRead up on transcoding at doc/TRANSCODING\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feopas%2Feopas","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feopas%2Feopas","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feopas%2Feopas/lists"}