{"id":21167156,"url":"https://github.com/fl0r1an84/directus-plesk","last_synced_at":"2026-04-18T13:31:20.959Z","repository":{"id":164112467,"uuid":"425605472","full_name":"FL0R1AN84/directus-plesk","owner":"FL0R1AN84","description":"This version can be used for initial installation and continuous update - for use on a Node.js server under Plesk.","archived":false,"fork":false,"pushed_at":"2023-06-06T18:26:21.000Z","size":2338,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-11T12:52:32.951Z","etag":null,"topics":["directus","nodejs","plesk","upgrade"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/FL0R1AN84.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2021-11-07T20:12:05.000Z","updated_at":"2023-05-23T19:19:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"4cbdbece-b7c6-4205-bc43-5e068a0ac1fa","html_url":"https://github.com/FL0R1AN84/directus-plesk","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/FL0R1AN84/directus-plesk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FL0R1AN84%2Fdirectus-plesk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FL0R1AN84%2Fdirectus-plesk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FL0R1AN84%2Fdirectus-plesk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FL0R1AN84%2Fdirectus-plesk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FL0R1AN84","download_url":"https://codeload.github.com/FL0R1AN84/directus-plesk/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FL0R1AN84%2Fdirectus-plesk/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31971484,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T00:39:45.007Z","status":"online","status_checked_at":"2026-04-18T02:00:07.018Z","response_time":103,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["directus","nodejs","plesk","upgrade"],"created_at":"2024-11-20T14:59:55.753Z","updated_at":"2026-04-18T13:31:20.953Z","avatar_url":"https://github.com/FL0R1AN84.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Upgrade\n\n## Add Git Repository\n\nUse `https://github.com/FL0R1AN84/api.git` for the \"Remote Git repository\" field.\n\n## Node.js\n\nIf there has been a new release, first click the \"NPM Install button\", then \"Run script\" with `bootstrap`. It may be that a restart is necessary.\n\nFor automatic deployment use this specify shell commands that should run every time upon deployment:\n\n```\nnpm install\nnpx directus bootstrap\ntouch tmp/restart.txt\n```\n\n# Installation\n\n## Directus Shared Hosting with Plesk\n\nOn many shared hosts you are not allowed to directly invoke node commands but you have to use the Plesk configuration panel instead. Unfortunately, Plesk does not allow the interactive execution of node scripts. Therefore we can't use Directus' `init` script and have to set up the project by our own.\n\n## Setup a project folder\n\nOn the server, create a project folder with 4 files in it.\n\n### [#](https://docs.directus.io/getting-started/installation/plesk/#_1-add-env-file) 1. Add .env file\n\nThis file is used to configure Directus. Normally, the `init` script would create it for us. So now we have to do it manually. You can just copy it from another Directus installation or use the [example file](https://github.com/directus/directus/blob/main/api/example.env)\n\n### [#](https://docs.directus.io/getting-started/installation/plesk/#_2-add-package-json) 2\\. Add package.json\n\nAdd Directus and your database connector as a dependency. To execute Directus' `bootstrap` command you also have to add a script entry for it.\n\n```javascript\n{\n\t\"scripts\": {\n\t\t\"bootstrap\": \"directus bootstrap\"\n\t},\n\t\"dependencies\": {\n\t\t\"directus\": \"*\",\n\t\t\"mysql\": \"^2.18.1\"\n\t}\n}\n\n```\n\n### [#](https://docs.directus.io/getting-started/installation/plesk/#_3-add-application-startup-file-index-js) 3. Add application startup file index.js\n\nInstead of a start command, Plesk wants a startup file. So create a `index.js` with the following content:\n\n```javascript\nvar { startServer } = require('directus/server');\n\nstartServer();\n\n```\n\n### [#](https://docs.directus.io/getting-started/installation/plesk/#_4-add-npmrc) 4. Add .npmrc\n\nLastly, we need to make a small configuration for npm by creating a `.npmrc` file with the following content:\n\n```\nscripts-prepend-node-path=true\n\n```\n\n### [#](https://docs.directus.io/getting-started/installation/plesk/#activate-and-configure-node-js) Activate and configure node.js\n\nIn Plesk, choose your website and click \"Node.js\". You should then see a button \"Enable Node.js\" and click on it.\n\nNow, change the \"Document root\" and \"Application root\" to the location of your project folder. \"Application startup\nfile\" must point to the `index.js` file from the former step.\n\nYou can now install the dependencies by clicking on the button \"NPM install\".\n\n### [#](https://docs.directus.io/getting-started/installation/plesk/#bootstrap-directus) Bootstrap Directus\n\nTo set up the database tables (and the first user) for Directus, click on the button \"Run script\" and input `bootstrap`. You get the console output after the script has run through.\n\n### [#](https://docs.directus.io/getting-started/installation/plesk/#test-directus-access) Test Directus Access\n\nThe Directus app should now work under your configured url. If not, try changing the development mode and wait a couple of seconds\n\n---\n\n[This installation guide is from: **_docs.directus.io_**](https://docs.directus.io/self-hosted/installation/plesk.html)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffl0r1an84%2Fdirectus-plesk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffl0r1an84%2Fdirectus-plesk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffl0r1an84%2Fdirectus-plesk/lists"}