# Check Cloud Web Environment

**URL:** <https://forum.xojo.com/t/check-cloud-web-environment/20527>\
**Category:** Web\
**Created:** [November 25, 2014, 3:56pm UTC](https://forum.xojo.com/t/check-cloud-web-environment/20527 "2014-11-25T15:56:05Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bjorn\_Dohle](https://forum.xojo.com/letter_avatar_proxy/v4/letter/b/50afbb/32.png) [@Bjorn\_Dohle](https://forum.xojo.com/u/Bjorn_Dohle)\
**Post date:** [November 25, 2014, 3:56pm UTC](https://forum.xojo.com/t/check-cloud-web-environment/20527/1 "2014-11-25T15:56:05Z")

</div>

Hi all,

How can i easily check if my web App is running in the Xojo Cloud or not? (runtime)

Thanks Björn

---

<div class="post-metadata">

**Author:** ![Jason\_Parsley](https://forum.xojo.com/user_avatar/forum.xojo.com/jason_parsley/32/152_2.png) [@Jason\_Parsley](https://forum.xojo.com/u/Jason_Parsley)\
**Post date:** [November 25, 2014, 4:05pm UTC](https://forum.xojo.com/t/check-cloud-web-environment/20527/2 "2014-11-25T16:05:15Z")

</div>

#if TargetXojoCloud  
// we’re on XojoCloud  
#endif

---

<div class="post-metadata">

**Author:** ![Bjorn\_Dohle](https://forum.xojo.com/letter_avatar_proxy/v4/letter/b/50afbb/32.png) [@Bjorn\_Dohle](https://forum.xojo.com/u/Bjorn_Dohle)\
**Post date:** [November 25, 2014, 4:18pm UTC](https://forum.xojo.com/t/check-cloud-web-environment/20527/3 "2014-11-25T16:18:11Z")

</div>

Thanks 🙂

---

<div class="post-metadata">

**Author:** ![Greg\_O\_Lone](https://forum.xojo.com/user_avatar/forum.xojo.com/greg_o_lone/32/49_2.png) [@Greg\_O\_Lone](https://forum.xojo.com/u/Greg_O_Lone)\
**Post date:** [November 25, 2014, 6:02pm UTC](https://forum.xojo.com/t/check-cloud-web-environment/20527/4 "2014-11-25T18:02:38Z")

</div>

For what it’s worth, this is not a runtime check. It’s a compile time constant which is set to True if your web app was built for Xojo Cloud. It’s a subtle but important distinction. For instance, you couldn’t use this directive in a console helper app that you built as Linux and then uploaded with your app or with SFTP. In that case, TargetXojoCloud is False.

---

<div class="post-metadata">

**Author:** ![system](https://forum.xojo.com/uploads/default/original/1X/455b4dcc0e61630e9f81940004ddffa49c432a46.png) [@system](https://forum.xojo.com/u/system)\
**Post date:** [October 29, 2020, 5:30pm UTC](https://forum.xojo.com/t/check-cloud-web-environment/20527/5 "2020-10-29T17:30:08Z")

</div>


