Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/city-of-helsinki/finnishcourses
Finnishcourses.fi Drupal project
https://github.com/city-of-helsinki/finnishcourses
Last synced: about 1 month ago
JSON representation
Finnishcourses.fi Drupal project
- Host: GitHub
- URL: https://github.com/city-of-helsinki/finnishcourses
- Owner: City-of-Helsinki
- License: gpl-2.0
- Created: 2019-11-19T13:40:44.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-11-15T07:46:17.000Z (about 1 month ago)
- Last Synced: 2024-11-15T08:29:22.671Z (about 1 month ago)
- Language: CSS
- Homepage: https://finnishcourses.fi/
- Size: 31.7 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 19
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Finnishcourses.fi Drupal 8 project
This project is hosted in platform.sh
https://console.platform.sh/citrusadmin/vodrxezdylpmu## Environments
Production (master branch):
https://master-7rqtwti-vodrxezdylpmu.eu-2.platformsh.site/
https://console.platform.sh/citrusadmin/vodrxezdylpmu/masterDevelop (development branch, pull requests are merged here):
https://develop-sr3snxi-vodrxezdylpmu.eu-2.platformsh.site/
https://console.platform.sh/citrusadmin/vodrxezdylpmu/develop## Development
We use the GitHub integration of platform.sh. To contribute, clone the
repository from GitHub make a pull request:
https://github.com/digiaonline/finnishcourses-d8Platform.sh will automatically create a running instance of the site with your
pull request in it for testing. You can find it in the platform.sh console
https://console.platform.sh/citrusadmin/vodrxezdylpmu## Theme / CSS
The compiled CSS are not inside this repo. You need to compile them yourself
to be able to develop the site. npm version 6.9.0 should work.```
cd web/themes/custom/finnishcourses_bootstrap
npm install
npm run-script gulp
```## Local environment
There are several options for a local environment, you're free to choose your favourite. At the very least we recommend installing and configuring the platform.sh cli:
https://docs.platform.sh/gettingstarted/cli.html
### Bare metal with drush runserver
1. Copy .env.example to .env
2. Create a mariadb (or mysql) database, with the credentials from .env (or chose your own)
3. Some commands:```
composer install
platform local:drush-aliases # Find your correct env
drush sql-sync @site-aliases.finnish-courses.master @baremetal
drush cim
drush runserver
drush @baremetal uli
```4. Compile CSS as explained above
### Lando
```
brew cask install lando
lando start
lando composer install
# This will get the database from the master environment:
platform db:dump --gzip -f database.sql.gz && lando db-import database.sql.gz
# This will get the files from the master environment:
rsync -az `platform ssh --pipe -e master`:/app/web/sites/default/files/ ./web/sites/default/files
drush @lando uli
```Compile CSS as explained above
### Acquia Dev Desktop
...