Skip to content

Latest commit

 

History

History
68 lines (43 loc) · 1.07 KB

README.md

File metadata and controls

68 lines (43 loc) · 1.07 KB

Getting started

Clone the repo

With git installed

git clone git@github.com:Threestup/website.git

Install PHP

For this project we are using PHP 7.0.

Install dependencies (optional)

You can install the dependencies by yourself, but this rule is trigger by make start. Go to the root of this folder then :

make deps

Run the server

Install the PHP dependencies then build the css file, and start a php server.

make start

Production

Build the production css file

make compile-sass

Docker

A Dockerfile and docker-compose.yml are available

docker-compose upand fire away

That's it, have fun!

Deploy

Run

docker build --platform linux/amd64 -t threestup/website:latest .

Make sure you are logged into docker hub with a user that has access to threestup.

docker push threestup/website:latest

After it updated on docker hub, go to the server (VPS currently):

cd vps/threestup
sudo docker pull threestup/website
sudo docker-compose up -d