Skip to content

Commit 65d8c1f

Browse files
authored
Merge pull request #883 from ucfopen/main
Release 3.3.2
2 parents 1a4d9f6 + 3af7c63 commit 65d8c1f

File tree

13 files changed

+64
-72
lines changed

13 files changed

+64
-72
lines changed

.env renamed to .env.example

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ APP_SECRET=eb2f09f8a21b0b7c57b9fc36eee250eb
2929
# For an SQLite database, use: "sqlite:///%kernel.project_dir%/var/data.db"
3030
# For a PostgreSQL database, use: "postgresql://db_user:db_password@127.0.0.1:5432/db_name?serverVersion=11&charset=utf8"
3131
# IMPORTANT: You MUST configure your server version, either here or in config/packages/doctrine.yaml
32-
#DATABASE_URL=mysql://root:root@127.0.0.1:3306/udoit3
32+
DATABASE_URL=mysql://root:root@db:3306/udoit3
3333
###< doctrine/doctrine-bundle ###
3434
### PRIVATE KEY PASSWORD: UDOIT3.0 ###
3535

@@ -152,9 +152,9 @@ DATE_FORMAT="Y-m-d"
152152

153153
###> base url ###
154154
# Base URL for client callbacks
155-
BASE_URL=""
155+
BASE_URL="http://127.0.0.1:8000/udoit3"
156156
# Webpack public path
157-
WEBPACK_PUBLIC_PATH="/build"
157+
WEBPACK_PUBLIC_PATH="/udoit3/build"
158158
###> base url ###
159159

160160
###> user name storage ###

.env.local.example

Lines changed: 0 additions & 14 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,11 @@ jobs:
4545

4646
- name: Build Image
4747
run: |
48-
cp .env.local.example .env.local
49-
docker-compose -f docker-compose.nginx.yml build
50-
docker-compose -f docker-compose.nginx.yml run composer composer install --no-dev --no-interaction --no-progress --optimize-autoloader
51-
docker-compose -f docker-compose.nginx.yml run yarn bash -c 'cd /app && yarn install && yarn build'
48+
cp .env.example .env
49+
docker compose -f docker-compose.nginx.yml build
50+
docker compose -f docker-compose.nginx.yml run composer composer install --no-dev --no-interaction --no-progress --optimize-autoloader
51+
docker compose -f docker-compose.nginx.yml run yarn bash -c 'cd /app && yarn install && yarn build'
5252
docker build . -t udoit:latest -f build/nginx/Dockerfile.build
5353
docker tag udoit:latest ${{ env.REGISTRY }}/${{ steps.case.outputs.lowercase }}:${{ steps.slash.outputs.value }}
5454
5555
docker push ${{ env.REGISTRY }}/${{ steps.case.outputs.lowercase }}:${{ steps.slash.outputs.value }}
56-
57-

.github/workflows/udoit.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,19 @@ jobs:
1010
matrix:
1111
operating-system: [ubuntu-latest]
1212
php-versions: ['8.1']
13+
node-version: [16.19.0]
1314
steps:
1415
- name: Checkout
1516
uses: actions/checkout@v2
1617

1718
- name: Check PHP syntax errors
1819
uses: overtrue/phplint@3.0.3
1920

21+
- name: Use Node.js ${{ matrix.node-version }}
22+
uses: actions/setup-node@v2
23+
with:
24+
node-version: ${{ matrix.node-version }}
25+
2026
- name: Setup PHP, with composer and extensions
2127
uses: shivammathur/setup-php@v2 #https://github.com/shivammathur/setup-php
2228
with:
@@ -35,6 +41,9 @@ jobs:
3541
key: php-${{ matrix.php-versions }}-composer-${{ hashFiles('**/composer.lock') }}
3642
restore-keys: php-${{ matrix.php-versions }}-composer-
3743

44+
- name: Create .env file
45+
run: cp .env.example .env
46+
3847
- name: Install Composer dependencies
3948
run: composer install --no-progress --prefer-dist --optimize-autoloader
4049

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,5 @@ yarn-error.log
3333
/phpunit.xml
3434
.phpunit.result.cache
3535
###< phpunit/phpunit ###
36+
37+
.env

HEROKU.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ Click the Heroku button and follow the instructions below:
2020
6. Fill out the `JWK_BASE_URL` field with the URL to your LMS. The default value works for instructure hosted instances of Canvas, but will need to be modified if your JWK configuration is hosted at a different domain than `iss`.
2121
7. Click the Deploy button and wait for the process to complete.
2222

23+
The above deploy uses the Heroku Postgres Mini plan by default. Please check `https://elements.heroku.com/addons/heroku-postgresql` for Heroku Postgresql plan details. You can upgrade Postgresql plan inside Heroku UI later.
24+
2325
### Step 2: Database Migration and Setup
2426
Next we need to set up the database and insert our institution in to the appropriate table.
2527
1. Click "Manage App" or go to `https://dashboard.heroku.com/apps/yourapp`. (Replace 'yourapp' with the name you gave in Step 1.2.)

INSTALL.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,22 +28,22 @@ We strongly recommend managing the source code through Git. The benefit of this
2828
If you prefer not to use Git, you can download a zip file of the latest release from the [Releases Page](https://github.com/ucfopen/UDOIT/releases). Unzip it in the directory on your server where UDOIT will live.
2929

3030
## .ENV Setup
31-
UDOIT uses a `.env.local` file for storing configuration variables. To create it:
31+
UDOIT uses a `.env` file for storing configuration variables. To create it:
3232

33-
1. Copy the file `.env.local.example` to `.env.local` by running
33+
1. Copy the file `.env.example` to `.env` by running
3434
```
35-
cp .env.local.example .env.local
35+
cp .env.example .env
3636
```
3737
2. Leave `APP_ENV` set to `prod`
3838
> If you are setting up a development environment, set this to `dev` and follow the steps in [Installing Composer Dependencies](#installing-composer-dependencies) without the `--no-dev` flag to obtain all of the development packages.
39-
3. Add your database information to thie `DATABASE_URL` variable. (The default value of `mysql://root:root@db:3306/udoit3` is suitable for running it on your local computer using Docker.)
39+
3. Add your database information to the `DATABASE_URL` variable. (The default value of `mysql://root:root@db:3306/udoit3` is suitable for running it on your local computer using Docker.)
4040
4. Modify the `BASE_URL` to match the URL of your instance of UDOIT. (The default value of `http://127.0.0.1:8000/udoit3` is suitable for running it on your local computer using Docker.)
4141
5. Modify the `WEBPACK_PUBLIC_PATH` to match the `BASE_URL` you set. (The default value of `/udoit3/build` is suitable for running it on your local computer usind Docker. Example: If your `BASE_URL` is set to `http://127.0.0.1:8000`, your `WEBPACK_PUBLIC_PATH` should be `/build`.)
4242
6. Set `APP_LMS` to the name of your LMS.
4343
* `canvas` if you are using the Canvas LMS.
4444
* `d2l` if you are using the D2l Brightspace LMS.
45-
7. (Optional) You can change the default language for your entire UDOIT instance by adding the `DEFAULT_LANG` variable. Currently supported languages are English (`en`) and Spanish (`es`).
46-
8. (Optional) If you are using UDOIT with a self-hosted instance of Canvas, you can add the `JWK_BASE_URL` variable and set it to the URL of your instance of Canvas. (Example: `JWK_BASE_URL="https://canvas.dev.myschool.edu"`)
45+
7. If you are using UDOIT with a self-hosted instance of Canvas, you can add the `JWK_BASE_URL` variable and set it to the URL of your instance of Canvas. (Example: `JWK_BASE_URL="https://canvas.dev.myschool.edu"`)
46+
8. (Optional) You can change the default language for your entire UDOIT instance by adding the `DEFAULT_LANG` variable. Currently supported languages are English (`en`) and Spanish (`es`).
4747

4848
## Docker
4949
We provide a fast and simple way of setting up a local UDOIT instance through the use of Docker containers.
@@ -54,15 +54,15 @@ To set up the docker containers, you must first install [Docker](https://docs.do
5454
### 2. Build the Containers
5555
If you prefer to build the containers yourself, or you are actively developing UDOIT and need to rebuild the containers to test your cahnges, run the following command from within the UDOIT directory:
5656

57-
docker-compose -f docker-compose.nginx.yml up
57+
docker compose -f docker-compose.nginx.yml up
5858

5959
### 3. Wait
6060
Wait for all of the containers to finish initializing. This can take over 15 minutes. You will know you are ready to proceed with the next step when you haven't seen any output in your terminal for a few minutes.
6161

6262
### 4. Set up the Database
6363
The first time you start the containers, you will need to set up the database to handle all the information UDOIT generates as it runs. Run the following command:
6464

65-
docker-compose -f docker-compose.nginx.yml run php php bin/console doctrine:migrations:migrate
65+
docker compose -f docker-compose.nginx.yml run php php bin/console doctrine:migrations:migrate
6666

6767
> You will also need to run that command whenever you update to a new version of UDOIT.
6868
@@ -72,7 +72,7 @@ Skip to [Testing your Setup](#testing-your-setup) to continue.
7272
### 6. Stopping the Containers
7373
If you ever want to stop the containers, you can do so with the following command:
7474

75-
docker-compose -f docker-compose.nginx.yml down
75+
docker compose -f docker-compose.nginx.yml down
7676

7777

7878

INSTALL_CANVAS.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,8 @@ lms_api_domain=$Canvas.api.domain
126126
* Click `ON` to enable the newly created key
127127

128128
---
129-
## Docker-Compose Base URL
130-
If you are setting up UDOIT for local development through docker-compose, <YOUR_UDOIT_BASE_URL> in both the API developer key and the LTI developer key above should be set to `http://127.0.0.1:8000/udoit3`.
129+
## Docker Compose Base URL
130+
If you are setting up UDOIT for local development through `docker compose`, <YOUR_UDOIT_BASE_URL> in both the API developer key and the LTI developer key above should be set to `http://127.0.0.1:8000/udoit3`.
131131

132132
---
133133
## Update the Institutions Table
@@ -187,4 +187,4 @@ UDOIT now needs to be added to an account in Canvas. Follow these steps to add t
187187
8. Paste the `Client ID` from the developer LTI Key you created earlier.
188188
9. Click Submit.
189189

190-
You're done! "UDOIT" should now appear in the navigation menu of the course (or every course in the account) in which you installed it. If you installed it to an account, "UDOIT Admin" will also appear in the account navigation menu.
190+
You're done! "UDOIT" should now appear in the navigation menu of the course (or every course in the account) in which you installed it. If you installed it to an account, "UDOIT Admin" will also appear in the account navigation menu.

app.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
}
3737
},
3838
"addons": [
39-
"heroku-postgresql:hobby-basic"
39+
"heroku-postgresql:mini"
4040
],
4141
"buildpacks": [
4242
{

build/nginx/php-custom.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
max_execution_time = 180
2+
memory_limit = 500M

0 commit comments

Comments
 (0)