Jump to content

[Solved] Check script


heirloom

Recommended Posts

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.

#!/bin/bash

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
Link to comment
Share on other sites

You can't install Python dependencies (or modules) yourself. Just follow the links given in https://wiki.helionet.org/tutorials/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.helionet.org/tutorials/flask

 

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

Link to comment
Share on other sites

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
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...