-
Notifications
You must be signed in to change notification settings - Fork 10
#41790 documentation additions #8
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
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
83903e7
Update drupal core upto 8.9.13
juuliabellcom 4a81240
Merge branch 'master' of github.com:OS2Forms/os2forms8
andriyun ac76448
Adjusted scaffold settings in composer.json file
andriyun 0179cba
Adding an updated install procedure.
822d965
This documentation includes the installation procedure, which works a…
9757334
Fixed mistakes.
1e2a681
Added full path to settings.php file.
a1b7d57
Restructure and additions per input from ITK.
4703127
Adding install description for traditional development environment
lats1 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,54 +1,150 @@ | ||
| # OS2Forms Drupal 8 project [](https://travis-ci.org/OS2Forms/os2forms8) | ||
| # OS2Forms Drupal 8 project | ||
|
|
||
| ## Usage | ||
| [](https://travis-ci.org/OS2Forms/os2forms8) | ||
|
|
||
| * Clone the repository | ||
| ## Getting Started | ||
|
|
||
| ``` | ||
| git clone [email protected]:OS2Forms/os2forms8.git | ||
| ``` | ||
| * Rename your installation if needed | ||
| These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system. | ||
|
|
||
| * Go to the installation and start composer | ||
| ``` | ||
| composer install | ||
| ``` | ||
| * Follow the regular install process, select ```OS2Forms8``` as install profile. | ||
| * After installation is done, enable OS2Forms by: | ||
| ``` | ||
| drush en os2forms, os2forms_nemid, os2forms_dawa, os2forms_sbsys | ||
| ``` | ||
| * Enable `Custom theme` for project. This is a recommended theme that has minimum settings, | ||
| so you will need to add all required blocks into proper regions afterwards. | ||
| ### Traditional | ||
|
|
||
| ### Drupal settings | ||
| #### Installing | ||
|
|
||
| Main Drupal setting file `web/sites/default/settings.php` has been added to git index. | ||
| By this way all os2forms projects are getting default settings, like temporary | ||
| directory, private directory, sync directory. | ||
| 1. Clone the git repository | ||
| ```sh | ||
| git clone [email protected]:OS2Forms/os2forms8.git | ||
| ``` | ||
|
|
||
| All project's sensitive configuration should be stored in `settings.local.php` | ||
| file. This file will be included from main `settings.php` settings. | ||
| 2. Enter the newly created project directory | ||
| ```sh | ||
| cd os2forms8 | ||
| ``` | ||
|
|
||
| #### Multisite/Subsite configuration. | ||
| 3. Install dependencies | ||
| ```sh | ||
| composer install | ||
| ``` | ||
|
|
||
| On multisite solution main Drupal setting file`web/sites/default/settings.php` | ||
| should be included into subsite's `settings.php` file. The easiest way to get | ||
| the new configuration on a subsite is to copy prepared template | ||
| `web/sites/subsite.settings.php` and add DB configuration, salt. | ||
| 4. Install drupal based on OS2Forms profile. Make sure you substitute the following variables: | ||
| * db_pass | ||
| * db_user | ||
| * db_host | ||
| * db_name | ||
| * account_password | ||
| * site_name | ||
| ```sh | ||
| drush si os2forms8 --db-url=mysql://db_pass:db_user@db_host/db_name --account-pass=account_password --site-name="site_name" | ||
| ``` | ||
|
|
||
| Hint to generate salt string: | ||
| ### With Docksal | ||
|
|
||
| #### Prerequisites | ||
|
|
||
| * [Docksal](https://docksal.io/) | ||
|
|
||
| #### Installing | ||
|
|
||
| 1. Clone the git repository | ||
| ```sh | ||
| git clone [email protected]:OS2Forms/os2forms8.git | ||
| ``` | ||
|
|
||
| 2. Enter the newly created project directory | ||
| ```sh | ||
| cd os2forms8 | ||
| ``` | ||
|
|
||
| 3. Start docksal environment | ||
| ```sh | ||
| fin start | ||
| ``` | ||
|
|
||
| 4. Install dependencies and enable modules | ||
| ```sh | ||
| fin rebuild-test | ||
| ``` | ||
|
|
||
| 5. Create local settings | ||
| ```sh | ||
| cp web/sites/example.settings.local.php web/sites/default/settings.local.php | ||
| ``` | ||
|
|
||
| 6. Configure trusted hosts in settings.local.php (add the following if not present) | ||
| ```php | ||
| // web/sites/default/settings.local.php | ||
|
|
||
| $settings['trusted_host_patterns'] = ['^os2forms8.docksal$', '^localhost$']; | ||
| ``` | ||
|
|
||
| You should now be able to browse to the application at `http://os2forms8.docksal` | ||
|
|
||
| ## Deployment | ||
|
|
||
| These instructions will get you a copy of the project up and running on a live system. | ||
| For a more detailed description, you could look at the `web/core/INSTALL.txt` [here](./web/core/INSTALL.txt). | ||
|
|
||
| ### Prerequisites | ||
|
|
||
| * A HTTP server such as [Apache](https://httpd.apache.org/) that supports PHP | ||
| * A database service such as [MySQL](https://www.mysql.com/) | ||
| * PHP 7 with the following extensions enabled: | ||
| * gd | ||
| * curl | ||
| * simplexml | ||
| * xml | ||
| * dom | ||
| * soap | ||
| * mbstring | ||
| * database specific extension such as the mysql extension | ||
| * [Composer](https://getcomposer.org/) | ||
|
|
||
| ### Installing | ||
|
|
||
| 1. Clone the git repository | ||
| ```sh | ||
| git clone [email protected]:OS2Forms/os2forms8.git | ||
| ``` | ||
|
|
||
| 2. Enter the newly created project directory | ||
| ```sh | ||
| cd os2forms8 | ||
| ``` | ||
| drush php-eval 'echo \Drupal\Component\Utility\Crypt::randomBytesBase64(55) . "\n";' | ||
|
|
||
| 3. Install dependencies without development dependencies | ||
| ```sh | ||
| composer install --no-dev | ||
| ``` | ||
|
|
||
| ## Contribution | ||
| 4. Generate a salt string and insert it in web/sites/default/settings.php | ||
| ```sh | ||
| # Generate salt string - this will output a new salt string | ||
| ./vendor/bin/drush php-eval 'echo \Drupal\Component\Utility\Crypt::randomBytesBase64(55) . "\n";' | ||
| ``` | ||
|
|
||
| ```php | ||
| // web/sites/default/settings.php | ||
| $settings['hash_salt'] = ''; // Insert the generated salt string here | ||
| ``` | ||
|
|
||
| 5. Configure trusted hosts in web/sites/default/settings.php. | ||
| For more information on how to write this, see the section for [Trusted Host settings](https://www.drupal.org/docs/installing-drupal/trusted-host-settings) | ||
| in the official Drupal installation guide. | ||
| ```php | ||
| // web/sites/default/settings.php | ||
|
|
||
| $settings['trusted_host_patterns'] = ['']; | ||
| ``` | ||
| 6. Visit the url for the os2forms application and follow the instructions | ||
| * Select the os2forms install profile for a default os2forms installation | ||
|
|
||
| 7. Enable OS2Forms modules | ||
| ```sh | ||
| ./vendor/bin/drush en os2forms, os2forms_nemid, os2forms_dawa, os2forms_sbsys | ||
| ``` | ||
|
|
||
| ## Contributing | ||
|
|
||
| OS2Forms projects is an opened for new features and os course bugfixes. | ||
| If you have any suggestion, or you found a bug in project, you are very welcome | ||
| to create an issue in github repository issue tracker. | ||
| For issue description there is expected that you will provide clear and | ||
| sufficient information about your feature request or bug report. | ||
| OS2Forms projects is open for new features and os course bugfixes. If you have any suggestion, or you found a bug in project, you are very welcome to create an issue in github repository issue tracker. For issue description there is expected that you will provide clear and sufficient information about your feature request or bug report. | ||
|
|
||
| ### Code review policy | ||
| See [OS2Forms code review policy](https://github.com/OS2Forms/docs#code-review) | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.