Dieses Repo soll die aktuelle Website npl.ch enthalten.
- PHP 5.3
- Zend Framework 1.11
- Install Eclipse PDT
- Install and run XAMPP. Some times there are problems with Skype running on port 80/443. In that case you need to start Skype after XAMPPs Apache.
- Use git to fetch this repo, e.g.:
git clone https://github.com/noproblan/npl-website.git
- you can also use ssh. If you're not the shell-kind-of-guy you can use TortoiseGit or the Eclipse Plugin EGit. - Go to http://localhost/phpmyadmin and create a database named
npl
, for example with this query:CREATE DATABASE IF NOT EXISTS npl;
- Run the SQL queries in
db/migrations
on the database. - Run the SQL queries on
db/seeds.sql
to initialize the application with some important and some nice-to-have data. - Create a database user named
npl
all rights on the databasenpl
, for example with the following query:CREATE USER 'npl'@'localhost' IDENTIFIED BY 'XXXXXXXXXXXXX';
GRANT USAGE ON . TO 'npl'@'localhost' IDENTIFIED BY 'XXXXXXXXXXXXX' WITH MAX_QUERIES_PER_HOUR 0 MAX_CONNECTIONS_PER_HOUR 0 MAX_UPDATES_PER_HOUR 0 MAX_USER_CONNECTIONS 0; GRANT ALL PRIVILEGES ON npl.* TO 'npl'@'localhost'; 8. Now the website should be accessible under http://localhost/npl-website/public/www/.
- ...
There is already a lot of documentation on the internet, I recommend to use this guide
Install docker and then run
bin/setup
This copies the INIs if necessary and builds the container. Run the container like that:
bin/run
Then you can open the webpage under http://localhost/public/www
For deploying the master branch to production use bash scripts/deploy_prod.sh USER@HOST
from your developer machine.