Giter VIP home page Giter VIP logo

seablast-dist's Introduction

seablast-dist

Distribution of a seed application for Seablast for PHP

Deployment

Create database with Collation=utf8_general_ci (create also separate testing database so that phinxlog migration_name doesn't overlap)

Run assemble.sh to

  • create conf/phinx.local.php based on conf/phinx.dist.php including the name of the database (and testing database) created above
  • create conf/app.conf.local.php based on conf/app.conf.dist.php including the phinx environment to be used and change any settings you like. (OPTIONAL)

Edit these two configuration files; then re-run assemble.sh

Note: the current configuration is in the conf/phinx.local.php so that it is automatically NOT commited to git

Folders, where web can write

  • cache and log (and also e.g. app specific uploads)
  • rights: 2775
  • owner: server user, e.g. composerit
  • group: web user, e.g. www-data
  • run permissions.sh to set up these permissions
  • upload_max_filesize in php.ini set to 8M

Security

  • enforcing HTTP to HTTPS MUST happen on the server-side, e.g. like this in /etc/apache2/sites-enabled/www.plysonika.cz.conf
<VirtualHost *:80>
        RewriteEngine On
        RewriteCond %{REQUEST_URI} !^/server-status.*
        RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]

Examples

  • try /redir to see how it is redirected to /kontakt
  • try /use-mirror to see how API call works

App directory description

Directory Description
.github/ Automations
assets/ Frontend assets. When dealing with numerous assets, categorize them into specific subdirectories.
cache/ Latte cache
conf/ All configuration files: Seablast app, PHPStan, phinx
log/ All kind of logs
models/ If not all classes are models, change it to src/Models, src/Data, src/Exceptions...
views/ Latte templates

seablast-dist's People

Contributors

workofstan avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.