# Scripts on DSP hosted on Heroku

**URL:** <https://community.dreamfactory.com/t/scripts-on-dsp-hosted-on-heroku/873>\
**Category:** Server-Side Scripting\
**Created:** [February 23, 2015, 1:34am UTC](https://community.dreamfactory.com/t/scripts-on-dsp-hosted-on-heroku/873 "2015-02-23T01:34:10Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![greywire](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.dreamfactory.com/greywire/32/135_2.png) [@greywire](https://community.dreamfactory.com/u/greywire)\
**Post date:** [February 23, 2015, 1:34am UTC](https://community.dreamfactory.com/t/scripts-on-dsp-hosted-on-heroku/873/1 "2015-02-23T01:34:10Z")

</div>

Whem trying to run a script on my DSP hosted on Heroku I get this error:

This DSP cannot run server-side javascript scripts. The “v8js” is not available.

How do I get this to work? Heroku is awesome but if I cant run scripts its a deal breaker…

---

<div class="post-metadata">

**Author:** ![billappleton](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.dreamfactory.com/billappleton/32/67_2.png) [@billappleton](https://community.dreamfactory.com/u/billappleton)\
**Post date:** [February 24, 2015, 2:15am UTC](https://community.dreamfactory.com/t/scripts-on-dsp-hosted-on-heroku/873/2 "2015-02-24T02:15:38Z")

</div>

Hi Greywire, are you pushing from a desktop install? You can set up the desktop properly and push from there. Is this the Heroku one-click button? Thanks

---

<div class="post-metadata">

**Author:** ![greywire](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.dreamfactory.com/greywire/32/135_2.png) [@greywire](https://community.dreamfactory.com/u/greywire)\
**Post date:** [February 24, 2015, 4:50pm UTC](https://community.dreamfactory.com/t/scripts-on-dsp-hosted-on-heroku/873/3 "2015-02-24T16:50:02Z")

</div>

Yes I used the handy dandy “Deploy to Heroku” button ([https://www.dreamfactory.com/herokulanding](https://www.dreamfactory.com/herokulanding)) and I thought all is well, this is awesomely easy… 🙂

---

<div class="post-metadata">

**Author:** ![greywire](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.dreamfactory.com/greywire/32/135_2.png) [@greywire](https://community.dreamfactory.com/u/greywire)\
**Post date:** [February 26, 2015, 4:53pm UTC](https://community.dreamfactory.com/t/scripts-on-dsp-hosted-on-heroku/873/4 "2015-02-26T16:53:49Z")

</div>

So are you saying I need to pull from the dreamfactory git repo and manually push that up to heroko and that will solve the problem?

Because it sounds like the heroku “stack” just doesnt have the v8 stuff set up, so I’m not sure how this would fix things?

---

<div class="post-metadata">

**Author:** ![billappleton](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.dreamfactory.com/billappleton/32/67_2.png) [@billappleton](https://community.dreamfactory.com/u/billappleton)\
**Post date:** [February 26, 2015, 5:42pm UTC](https://community.dreamfactory.com/t/scripts-on-dsp-hosted-on-heroku/873/5 "2015-02-26T17:42:44Z")

</div>

Hi greywire

server side scripting uses files to store your scripts

these will not be in your heroku “image” because the PaaS systems dont have persistent storage

a better way is to develop you app on the desktop (we have bitnami installers for mac, win, and linux)

develop your server side scripts there and push the whole thing into heroku

here are the instructions to do this on Pivotal, i am hoping heroku is similar

[https://www.dreamfactory.com/pwslanding/](https://www.dreamfactory.com/pwslanding/)

another option is to switch to IaaS (aws, azure, etc)

they have persistent storage and you can develop server side scripts in the admin console running on the cloud

---

<div class="post-metadata">

**Author:** ![greywire](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.dreamfactory.com/greywire/32/135_2.png) [@greywire](https://community.dreamfactory.com/u/greywire)\
**Post date:** [February 26, 2015, 6:49pm UTC](https://community.dreamfactory.com/t/scripts-on-dsp-hosted-on-heroku/873/6 "2015-02-26T18:49:44Z")

</div>

OK, that makes sense.

so, where do I place my scripts at?

---

<div class="post-metadata">

**Author:** ![billappleton](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.dreamfactory.com/billappleton/32/67_2.png) [@billappleton](https://community.dreamfactory.com/u/billappleton)\
**Post date:** [February 26, 2015, 6:50pm UTC](https://community.dreamfactory.com/t/scripts-on-dsp-hosted-on-heroku/873/7 "2015-02-26T18:50:32Z")

</div>

if you run the desktop version of DSP you just edit the scripts and app there

all the files go into the right place

then push that image

---

<div class="post-metadata">

**Author:** ![greywire](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.dreamfactory.com/greywire/32/135_2.png) [@greywire](https://community.dreamfactory.com/u/greywire)\
**Post date:** [February 26, 2015, 7:05pm UTC](https://community.dreamfactory.com/t/scripts-on-dsp-hosted-on-heroku/873/8 "2015-02-26T19:05:55Z")

</div>

I was hoping to develop completely “in the cloud”. Maybe I can use an AWS free instance for dev and deploy production to heroku.

I am still not sure though if heroku is going to run the scripts because from what I can tell their PHP stack does not include the v8js extension in php at all, period.

It looks like heroku might simply be out as a viable option for dreamfactory (unless you dont need scripts)
