diff --git a/.gitignore b/.gitignore index 6ed7fd6ad1..3800f40add 100644 --- a/.gitignore +++ b/.gitignore @@ -10,7 +10,7 @@ /cover_db/ /local/ /log4perl_local.conf -/metacpan_web_local.conf +/metacpan_web_local.* /node_modules/ /perltidy.LOG /pm_to_blib diff --git a/Dockerfile b/Dockerfile index 7d9341d266..de1ab83000 100644 --- a/Dockerfile +++ b/Dockerfile @@ -49,7 +49,7 @@ EOT ENV PERL5LIB="/app/local/lib/perl5" ENV PATH="/app/local/bin:${PATH}" -COPY *.md app.psgi *.conf ./ +COPY *.md app.psgi log4perl* metacpan_web.* metacpan_web_local.* ./ COPY bin bin COPY lib lib COPY root root diff --git a/cpanfile b/cpanfile index 96e78967b4..715d7fc79c 100644 --- a/cpanfile +++ b/cpanfile @@ -78,6 +78,7 @@ requires 'URI::Escape'; requires 'With::Roles', '0.001002'; requires 'WWW::Form::UrlEncoded::XS'; requires 'XML::FeedPP'; +requires 'YAML::XS'; on test => sub { requires 'App::Prove'; diff --git a/metacpan_web.conf b/metacpan_web.conf deleted file mode 100644 index c7eff8c181..0000000000 --- a/metacpan_web.conf +++ /dev/null @@ -1,34 +0,0 @@ -# rename this file to metacpan::web.yml and put a ':' after 'name' if -# you want to use YAML like in old versions of Catalyst -name MetaCPAN::Web - -api = https://fastapi.metacpan.org -source_host = https://st.aticpan.org -web_host = https://metacpan.org -consumer_key = metacpan.dev -cookie_secret = seekrit -consumer_secret = ClearAirTurbulence -log4perl_file = log4perl.conf - -mark_unauthorized_releases = 0 - - - cache = 1 - - - - object_type = author - field_name = pauseid - metacpan_url = author - - - - object_type = release - field_name = distribution - metacpan_url = release - - - status = latest - - - diff --git a/metacpan_web.yaml b/metacpan_web.yaml new file mode 100644 index 0000000000..400f15156d --- /dev/null +++ b/metacpan_web.yaml @@ -0,0 +1,14 @@ +name: MetaCPAN::Web + +api: https://fastapi.metacpan.org +source_host: https://st.aticpan.org +web_host: https://metacpan.org +consumer_key: metacpan.dev +cookie_secret: seekrit +consumer_secret: ClearAirTurbulence +log4perl_file: log4perl.conf + +mark_unauthorized_releases: 0 + +View::Xslate: + cache: 1