Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploy #396

Merged
merged 63 commits into from
Sep 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
37c4a38
Update deploy.yml (#356)
Arhell Jan 14, 2023
5160421
chore(deps): bump league/commonmark from 2.3.8 to 2.3.9
dependabot[bot] Feb 16, 2023
b0aaa1e
Merge pull request #358 from codeigniter4projects/dependabot/composer…
Arhell Feb 17, 2023
33f9c15
chore(deps): bump knplabs/github-api from 3.9.0 to 3.11.0
dependabot[bot] Mar 10, 2023
472c69c
Merge pull request #361 from codeigniter4projects/dependabot/composer…
MGatner Mar 13, 2023
c489a58
chore(deps): bump league/commonmark from 2.3.9 to 2.4.0
dependabot[bot] Mar 27, 2023
7601848
chore(deps): bump guzzlehttp/guzzle from 7.5.0 to 7.5.1
dependabot[bot] Apr 18, 2023
f602c92
Merge pull request #363 from codeigniter4projects/dependabot/composer…
kenjis Apr 19, 2023
3860b4b
Merge pull request #365 from codeigniter4projects/dependabot/composer…
kenjis Apr 19, 2023
d205b04
chore(deps): bump guzzlehttp/guzzle from 7.5.1 to 7.7.0
dependabot[bot] May 22, 2023
5699880
chore: allow plugin php-http/discovery
kenjis May 24, 2023
45e6965
chore: composer require --dev tatter/patches
kenjis May 24, 2023
8dfb45e
Patch framework
kenjis May 24, 2023
ba836a6
chore: composer update
kenjis May 24, 2023
c66d70e
docs: fix doc comment
kenjis May 24, 2023
7a6cc54
chore: add scanDirectories
kenjis May 24, 2023
b133517
chore: add params
kenjis May 24, 2023
45c7bda
docs: add @psalm-suppress
kenjis May 24, 2023
7e4bb3c
Merge pull request #371 from kenjis/update-to-ci435
kenjis Jun 4, 2023
e85282f
Merge pull request #369 from codeigniter4projects/dependabot/composer…
kenjis Jun 4, 2023
beead04
CodeIgniter Logo in PNG
demyr17 Jun 14, 2023
617e11f
Update _top_nav.php
demyr17 Jun 14, 2023
52861fc
Update app.php
demyr17 Jun 14, 2023
36ae425
Update home.php
demyr17 Jun 14, 2023
4c3843e
Update ci-theme.css
demyr17 Jun 14, 2023
cca25bb
Update _footer.php
demyr17 Jun 14, 2023
4fd86d4
Merge pull request #377 from codeigniter4projects/demyr17-patch-3-2
lonnieezell Jun 16, 2023
d412e8e
Merge pull request #378 from codeigniter4projects/demyr17-patch-3-3
lonnieezell Jun 16, 2023
c90173f
Merge pull request #376 from codeigniter4projects/demyr17-patch-3-1
lonnieezell Jun 16, 2023
066f561
Merge pull request #375 from codeigniter4projects/demyr17-patch-3
lonnieezell Jun 16, 2023
2b02312
Merge pull request #374 from codeigniter4projects/demyr17-patch-1-1
lonnieezell Jun 16, 2023
9d93cac
Merge pull request #373 from codeigniter4projects/demyr17-patch-2
lonnieezell Jun 16, 2023
52021c2
Update ci-theme.css
demyr17 Jun 19, 2023
23cda04
Update download.php
demyr17 Jun 19, 2023
d2130bf
Update discuss.php
demyr17 Jun 19, 2023
63c845c
Update two_column.php
demyr17 Jun 19, 2023
29f523a
Update contribute.php
demyr17 Jun 19, 2023
aa80387
Update app.php
demyr17 Jun 19, 2023
ac4ee35
docs: add space
kenjis Jun 20, 2023
26fd89b
docs: update required PHP version
kenjis Jun 20, 2023
31e3118
docs: use GitHub Markdown note
kenjis Jun 20, 2023
1859fae
docs: remove white spaces
kenjis Jun 20, 2023
54712a7
docs: improve installation instruction
kenjis Jun 20, 2023
82be7f1
Merge pull request #384 from kenjis/update-README-env
lonnieezell Jun 22, 2023
caf0cf5
Merge branch 'codeigniter4projects:develop' into develop
demyr17 Jun 22, 2023
32bf9db
Update disclosures.php
demyr17 Jun 22, 2023
28cab83
Update policies.php
demyr17 Jun 22, 2023
855dc78
Merge pull request #383 from demyr17/develop
lonnieezell Jun 22, 2023
bede17b
docs: add missing forceGlobalSecureRequests
kenjis Jun 25, 2023
5b18c38
Merge pull request #387 from kenjis/fix-README-forceGlobalSecureRequests
kenjis Jun 27, 2023
d50ee1d
chore(deps): bump codeigniter4/framework from 4.3.5 to 4.3.7
dependabot[bot] Jul 31, 2023
0416ee6
Merge pull request #388 from codeigniter4projects/dependabot/composer…
lonnieezell Aug 16, 2023
fb8ecd1
Remove News link from site
lonnieezell Aug 16, 2023
b803b07
Remove news from routing
lonnieezell Aug 16, 2023
080ff46
feat: Convert Recent News section on home page to pull from the forum…
lonnieezell Aug 25, 2023
b160382
Fixing style issues
lonnieezell Aug 25, 2023
60cd45b
chore(deps): bump guzzlehttp/guzzle from 7.7.0 to 7.8.0
dependabot[bot] Aug 28, 2023
81e6507
Merge pull request #392 from codeigniter4projects/dependabot/composer…
kenjis Aug 30, 2023
c4ca7f8
chore(deps): bump league/commonmark from 2.4.0 to 2.4.1
dependabot[bot] Aug 31, 2023
23e7f4e
Merge pull request #389 from codeigniter4projects/remove-news
kenjis Sep 1, 2023
1f6dff8
fix: top-nav needs black background in dark mode. Responsive top menu…
lonnieezell Aug 16, 2023
83764eb
Merge pull request #394 from codeigniter4projects/dependabot/composer…
kenjis Sep 1, 2023
7451f9c
Merge pull request #395 from kenjis/dark-mode-fixes
kenjis Sep 1, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
jobs:
deploy:
name: 'Deploy to Production'
runs-on: ubuntu-18.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
Expand Down
42 changes: 23 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,30 +5,30 @@
[![](https://github.com/codeigniter4projects/website/workflows/Deptrac/badge.svg)](https://github.com/codeigniter4projects/website/actions/workflows/deptrac.yml)
[![Coverage Status](https://coveralls.io/repos/github/codeigniter4projects/website/badge.svg?branch=develop)](https://coveralls.io/github/codeigniter4projects/website?branch=develop)

This is the official website for the CodeIgniter PHP framework.
This is the official website for the CodeIgniter PHP framework.

The website has been open-sourced in the interest of transparency.
We welcome issues and pull requests, to handle corrections.
We welcome issues and pull requests, to handle corrections.
New blog posts will not be accepted without prior authorization.

## Implementation

The site has been built with CodeIgniter 4, and is meant to be an example
of "good" programming style, although definitely not
the only way to do things.
the only way to do things.

Some of the programming design decisions reflected:

- The `public` folder is the intended document root for the webapp.
- The architecture adheres more to the "model-view-adapter" convention,
where the view is unaware of the source of data and the model is unaware of
how any data might be presented. The controllers are go-betweens.
- A "master template" lets each controller focus
- A "master template" lets each controller focus
only with building its part of a webpage.
- A base controller takes care of assembling finished pages, using the
- A base controller takes care of assembling finished pages, using the
master template.
- Mock data for the recent news and most recently active threads, means
that the website can be tested locally, without needing access to
that the website can be tested locally, without needing access to
the live forum database.
- View fragments are used to style single "records" on their own,
improving cohesion.
Expand All @@ -41,7 +41,7 @@ Some of the programming design decisions reflected:

## Server Requirements

PHP version 7.2 or higher is required, with the following extensions installed:
PHP version 7.4 or higher is required, with the following extensions installed:

- [intl](https://php.net/manual/en/intl.requirements.php)
- [libcurl](https://php.net/manual/en/curl.requirements.php) if you plan to use the `HTTP\CURLRequest` library
Expand All @@ -63,21 +63,25 @@ Use these steps to create a local installation for development and testing.
4. Install dependencies: `composer install`
5. Create your **.env** file: `cp env .env`
6. Edit **.env** and set at least the following:
* `CI_ENVIRONMENT = development`
* `database.default.database = ../writable/database.db`
* `database.default.DBDriver = SQLite3`

The website is intended to live on the same server as the forums, and uses the forum
database to pull in the most recent posts. When developing locally, this poses a challenge.
To make local development simpler, a migration and seed have been provided to setup a
table with some mock data that can be used in place of having a local MyBB install.

1. Migrate the database: `php spark migrate -all`
2. Run the seeder: `php spark db:seed ForumSeeder`
* `GITHUB_ACCESS_TOKEN = ghp_***`
* Set your GitHub Personal Access Token.
* `CI_ENVIRONMENT = development`
* `app.forceGlobalSecureRequests = false`
* `database.default.database = ../writable/database.db`
* `database.default.DBDriver = SQLite3`
7. Seed fake Forum data

The website is intended to live on the same server as the forums, and uses the forum
database to pull in the most recent posts. When developing locally, this poses a challenge.
To make local development simpler, a migration and seed have been provided to setup a
table with some mock data that can be used in place of having a local MyBB install.

1. Migrate the database: `php spark migrate -all`
2. Run the seeder: `php spark db:seed ForumSeeder`

At this point you should have a usable version of the current code! Try launching it locally:

1. From the repo directory start serving the website: `php spark serve`
2. In your web browser of choice navigate to the local URL: `http://localhost:8080`

> Note: The example commands above are for Linux-based systems. You may need to adjust for your operating system.
> **Note** The example commands above are for Linux-based systems. You may need to adjust for your operating system.
2 changes: 1 addition & 1 deletion app/Common.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
* loaded early on, and may also contain additional functions
* that you'd like to use throughout your entire application
*
* @see: https://codeigniter4.github.io/CodeIgniter4/
* @see: https://codeigniter.com/user_guide/extending/common.html
*/
Loading