https://www.digitalocean.com/community/tutorials/initial-server-setup-with-ubuntu-18-04
https://www.digitalocean.com/community/tutorials/how-to-install-and-use-composer-on-ubuntu-18-04
| // Put this in your code section in your layout | |
| function onstart() { | |
| $this['url_hasher'] = new class { | |
| public function run($input) { | |
| return md5($input); | |
| } | |
| }; | |
| } |
| name: Deploy Develop | |
| on: | |
| push: | |
| branches: | |
| - develop | |
| jobs: | |
| build: | |
| name: Build | |
| runs-on: ubuntu-latest | |
| steps: |
here's the link to a tutorial. https://youtu.be/kX6MLRc_Qmg
| app: | |
| url: https://fcskc-website.test | |
| locale: en | |
| debug: true | |
| cms: | |
| theme: fcskc-website | |
| edgeUpdates: false | |
| disableCoreUpdates: false | |
| enableSafeMode: false |
| {"lastUpload":"2020-06-12T12:51:51.480Z","extensionVersion":"v3.4.3"} |
| #!/bin/bash | |
| inotifywait -m ~/.sites -e create -e moved_to | | |
| while read dir action file; do | |
| export file | |
| echo "The file '$file' appeared in directory '$dir' via '$action'" | |
| echo -e "\n127.0.0.1 $file.test\c" | powershell.exe gsudo wsl tee -a /mnt/c/Windows/System32/drivers/etc/hosts | |
| done |
| app: | |
| url: http://example.test | |
| locale: en | |
| debug: true | |
| cms: | |
| theme: theme-name #no Spaces. dashes only | |
| edgeUpdates: false | |
| disableCoreUpdates: false | |
| enableSafeMode: false |
| {% if __SELF__.menuItems %} | |
| <div class="collapse navbar-collapse" id="navcol-1"> | |
| <ul class="nav navbar-nav ml-auto"> | |
| {% partial __SELF__ ~ "::items" items=__SELF__.menuItems %} | |
| </ul> | |
| </div> | |
| {% endif %} |
| #!/bin/bash | |
| # OctoberCMS Deployment for Git managed Files | |
| # | |
| # I created this bash script because I found myself | |
| # Typing the same commands over and over again to | |
| # import my storage and database directories for | |
| # Clients. Running this will (more or less) zip your | |
| # storage directory, Export your database, and import | |
| # your database & storage directory to the server | |
| # Where you have git deployed. |