Jump to content


[Solved] Check script

  • Please log in to reply
4 replies to this topic

#1 heirloom


    Rank I Member

  • Members
  • Pip
  • 18 posts

Posted 26 July 2020 - 06:54 PM

I just want to check a script I want to run to make sure it's ok. I want to cd to the flask folder and then run 'python3 dev.py build' so the script that I've made is:

`cronjob1.sh` in `$HOME/cronjobs` folder with execute permissions.


cd "$HOME/public_html/flask/"
/usr/bin/python3.7 dev.py build

And then the cronjob would be:

$HOME/cronjobs/cronjob1.sh > $HOME/logs/`date +\%Y\%m\%d\%H\%M\%S`-cron.log 2>&1

dev.py will install pip requirements and npm modules for the project that I've uploaded to work. You think it's ok like that?

Edited by heirloom, 27 July 2020 - 12:38 PM.

#2 sohamb03


    Rank X Member

  • Moderators
  • 1,312 posts
  • Gender:Male
  • Location:India

Posted 27 July 2020 - 03:33 AM

You can't install Python dependencies (or modules) yourself. Just follow the links given in https://wiki.helione...utorials/python and take a look at the ones already installed. If you still need something, post back here with the requisites, an Admin will install them for you.

Also, Flask functions a bit differently here than on your local PC or a Linux VM, largely because SSH access isn't provided on shared hosting. However, we've a complete tutorial for deploying Flask applications on HelioHost, that should sort your issues. https://wiki.helione...tutorials/flask

If you've any other queries, let us know. :)

#3 Krydos


    Rank X Member

  • Root Admin
  • 20,593 posts
  • Gender:Male

Posted 27 July 2020 - 05:25 AM

If you decide you need ssh access to run commands like that you can get a vps https://www.heliohost.org/vps/

#4 heirloom


    Rank I Member

  • Members
  • Pip
  • 18 posts

Posted 27 July 2020 - 12:52 PM

It did install the python packages but it failed to install the node modules. Is npm installed in Tommy?


Here is the output:


#5 heirloom


    Rank I Member

  • Members
  • Pip
  • 18 posts

Posted 27 July 2020 - 01:01 PM

Nevermind I see that I already imported the modules when I imported the code.


Terminal access is not available on HelioHost, however, an admin can install the required Node.js modules for you. Make a separate post requesting the installation of the modules.

That's not the case with Node.js.


@filmegoo: You need to download the modules locally using NPM and then compress the node_modules folder to a zip file and upload it to your Node.js folder. After that, extract the file.

Edited by heirloom, 27 July 2020 - 01:03 PM.

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users