Dieses Repo soll die aktuelle Website npl.ch enthalten.
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.npl
, for example with this query:CREATE DATABASE IF NOT EXISTS npl;
db/migrations
on the database.db/seeds.sql
to initialize the application with some important and some nice-to-have data.npl
all rights on the database npl
, 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';
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.