{"id":17046632,"url":"https://github.com/sebobo/shel.neosdemo","last_synced_at":"2025-06-13T12:37:32.353Z","repository":{"id":69602059,"uuid":"61242265","full_name":"Sebobo/Shel.NeosDemo","owner":"Sebobo","description":"Just a simple neos demo for presentation","archived":false,"fork":false,"pushed_at":"2024-06-05T17:26:21.000Z","size":627,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-23T03:24:29.907Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","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/Sebobo.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}},"created_at":"2016-06-15T21:30:34.000Z","updated_at":"2016-06-15T21:31:07.000Z","dependencies_parsed_at":"2025-01-28T09:45:21.588Z","dependency_job_id":"af2d8d79-3534-4e8b-8c13-221325cc08dc","html_url":"https://github.com/Sebobo/Shel.NeosDemo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sebobo%2FShel.NeosDemo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sebobo%2FShel.NeosDemo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sebobo%2FShel.NeosDemo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sebobo%2FShel.NeosDemo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Sebobo","download_url":"https://codeload.github.com/Sebobo/Shel.NeosDemo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sebobo%2FShel.NeosDemo/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":257722228,"owners_count":22591817,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-10-14T09:46:56.811Z","updated_at":"2025-06-13T12:37:32.334Z","avatar_url":"https://github.com/Sebobo.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Neosdemo for testing Neos and running surf deployments\n\n## Starting\n\nRun\n   \n    vagrant up\n    \nEdit your `/etc/hosts` file and add:\n\n    # Neosdemo\n    172.17.28.137 dev.neosdemo\n    172.17.28.138 staging.neosdemo    \n    \n## Setup each box\n\n### Dev\n\n    vagrant ssh dev\n    \n#### Installation\n\nAppend your public key to the vagrant user in `/home/vagrant/.ssh/authorized_keys`.\n\nNow you can login via:\n   \n    ssh -A vagrant@dev.neosdemo\n    \nAdd the following to `/etc/hosts`:\n\n    172.17.28.138 staging.neosdemo\n    \n#### Developing\n\nOpen this folder in PHPStorm and setup automatic deployment to the dev box like in the screenshots:\n\n![Deployment Config](Documentation/DeploymentScreen.png \"Deployment Config\")\n![Mapping Config](Documentation/MappingScreen.png \"Mapping Config\")\n![Excluded Paths Config](Documentation/ExcludedPathsScreen.png \"Excluded Paths Config\")\n\nNow right click on the project and run `Deployment -\u003e Upload to neosbox` for the first time.\nIn `Tools` -\u003e `Deployment` enable `Automatic Upload` and in the options `Upload external changes`.\n\nNow your ready to go and can open your neos site for the first time by opening http://dev.neosdemo/ in your browser.\n\n* Go through the wizard. The install tool pw will be created and you have to check it in `/var/www/Data/SetupPassword.txt`. \n* If the wizard asks you for the db credentials enter `root` as username and password and select the database `neos`.\n* Enter your information when asked to create a new admin user.\n* Import the neosdemo example content\n* Login into the backend\n* Done!\n    \n### Staging \n    \n    vagrant ssh staging\n    \n#### Installation\n\nAppend your public key to the vagrant user in `/home/vagrant/.ssh/authorized_keys`.\n\nNow you can login via:\n   \n    ssh -A vagrant@dev.neosdemo\n    \nModify the vhost in `/usr/local/etc/nginx/common-neos.conf`:\n    \n* Change `root /var/www/Web/` to `root /var/www/releases/current/Web`.\n* Add after `fastcgi_param  FLOW_REWRITEURLS  1;` the line `fastcgi_param FLOW_CONTEXT Production;`.\n* Restart nginx via `sudo service nginx restart`.\n* Change vagrant users shell to bash via `sudo chsh -s /usr/local/bin/bash vagrant`.\n\nInstall composer with the following commands:\n\n    php -r \"copy('https://getcomposer.org/installer', 'composer-setup.php');\"\n    php -r \"if (hash_file('SHA384', 'composer-setup.php') === 'e115a8dc7871f15d853148a7fbac7da27d6c0030b848d9b3dc09e2a0388afed865e6a3d6b3c0fad45c48e2b5fc1196ae') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;\"\n    php composer-setup.php\n    php -r \"unlink('composer-setup.php');\"\n    \n## Deploying\n\nRun\n\n    ./surf.phar deploy staging\n\nAfter it finished go to http://staging.neosdemo and run the wizard like before.\n\nDone!\n\n## Setup gitlab\n\n### Login or create an account\n\nFor simple testing we use a free gitlab.com account.\nIf you don't have an account yet, create one and add your public key to your profile.\n\n### Setup project\n\nCreate a new repository and push this repository to it with git.\n\nChange the `repositoryUrl` in `.surf/staging.php` to the url of your new repository.\n\n### Setup gitlab runner in staging box\n\nInstall wget in the staging box via `sudo pkg install wget`.\n\nInstall gitlab ci runner in staging box as described on https://gitlab.com/gitlab-org/gitlab-ci-multi-runner/blob/master/docs/install/freebsd.md.\n\nFor the runner configuration use \n\n* coordinator url: https://gitlab.com/ci\n* token: use the one from your project configuration in `Runners`\n* give it the name `staging-neosdemo`\n* you don't need any tags\n* use `shell` as executor\n* done!\n\nBy now you should have some changes in your code, commit and push those to the gitlab repo.\n\nCreate keys for the gitlab-runner user:\n \n    sudo su - gitlab-runner\n    ssh-keygen -t rsa -b 4096 -C \"mydemorunner\"\n    \nCopy the public key in `/home/gitlab-runner/.ssh/id_rsa.pub` to the vagrant users authorized keys in `/home/vagrant/.ssh/authorized_keys`.\nAlso add it as deploy key in your gitlab repo in `Deploy Keys`.\n\nCongrats, you now have a deployment pipeline!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsebobo%2Fshel.neosdemo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsebobo%2Fshel.neosdemo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsebobo%2Fshel.neosdemo/lists"}