# Hugo + Asciidoc + RVM + CloudFlare Pages build issue

**URL:** <https://discourse.gohugo.io/t/hugo-asciidoc-rvm-cloudflare-pages-build-issue/38546>\
**Category:** support\
**Tags:** asciidoc\
**Created:** [May 10, 2022, 1:32pm UTC](https://discourse.gohugo.io/t/hugo-asciidoc-rvm-cloudflare-pages-build-issue/38546 "2022-05-10T13:32:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![aoudiamoncef](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/aoudiamoncef/32/16874_2.png) [@aoudiamoncef](https://discourse.gohugo.io/u/aoudiamoncef)\
**Post date:** [May 10, 2022, 1:32pm UTC](https://discourse.gohugo.io/t/hugo-asciidoc-rvm-cloudflare-pages-build-issue/38546/1 "2022-05-10T13:32:57Z")

</div>

Hi,  
I migrated with success from `0.89.0` to `0.98.0` in my windows 10 machine, I added this configuration:

```toml
[security]
  [security.exec]
    allow = ['^dart-sass-embedded$', '^go$', '^npx$', '^postcss$', '^asciidoctor$']

```

Environment

```auto
HUGO_VERSION | 0.98.0
NODE_VERSION | 16.15.0
RUBY_VERSION | 2.7.6

```

When I tried to deploy on CloudFlarePages runner, I got an error, It seems to be a PATH issue:

```auto
Get asciidoctor path
/opt/buildhome/.rvm/gems/ruby-2.7.6/gems/asciidoctor-2.0.17/lib/asciidoctor.rb
...
page/uses/index.adoc: from /opt/buildhome/.rvm/gems/ruby-2.7.0/bin/asciidoctor:23:in `<main>'

```

please check the complete logs below.

[0890\_OK.log](https://github.com/gohugoio/hugo/files/8661583/0890_OK.log)

[0980\_KO.log](https://github.com/gohugoio/hugo/files/8661586/0980_KO.log)

I’m waiting for feedbacks

Thanks

---

<div class="post-metadata">

**Author:** ![jmooring](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/jmooring/32/4214_2.png) [@jmooring](https://discourse.gohugo.io/u/jmooring)\
**Post date:** [May 10, 2022, 1:38pm UTC](https://discourse.gohugo.io/t/hugo-asciidoc-rvm-cloudflare-pages-build-issue/38546/2 "2022-05-10T13:38:37Z")

</div>

I think this is triggered by RVM.  
In your site config, please add `GEM_PATH` to `security.exec.osEnv`

```auto
[security.exec]
osEnv = ['(?i)^(PATH|PATHEXT|APPDATA|TMP|TEMP|TERM|GEM_PATH)$']

```

We may need to add additional env vars, but let’s start with this.

---

<div class="post-metadata">

**Author:** ![aoudiamoncef](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/aoudiamoncef/32/16874_2.png) [@aoudiamoncef](https://discourse.gohugo.io/u/aoudiamoncef)\
**Post date:** [May 10, 2022, 2:10pm UTC](https://discourse.gohugo.io/t/hugo-asciidoc-rvm-cloudflare-pages-build-issue/38546/3 "2022-05-10T14:10:12Z")

</div>

Thank you so much, it works.

---

<div class="post-metadata">

**Author:** ![system](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/system/32/1_2.png) [@system](https://discourse.gohugo.io/u/system)\
**Post date:** [May 12, 2022, 2:11pm UTC](https://discourse.gohugo.io/t/hugo-asciidoc-rvm-cloudflare-pages-build-issue/38546/4 "2022-05-12T14:11:01Z")

</div>

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.
