See Getting started guide to learn how to customize build.
On dokku:
sudo -u dokku dokku config:get "jecherchemamaison" PROXY="88.176.44.98:28038"
On Production:
Use the local fig.production.yml
fig run npm run release
fig run npm run dev
This project uses fig to run containers for devlopment purpose.
git clone git@github.com:themouette/jecherchemamaison.git
cd jecherchemamaison
./bin/install
fig run npm run dev
To install a production server, you MUST have a set of deploy keys located in
your ~/.ssh/
directory. Those keys are named recherche_immo_deploy_dsa
and
recherche_immo_deploy_dsa.pub
.
You also MUST have ssh access to the production server, default server url is
recherche.immo.prod
.
# This is a sample ./ssh/config
Host recherche.immo.prod
User admin
Port 22
PreferredAuthentications publickey
IdentityFile ~/.ssh/id_rsa
Hostname 95.142.173.163
Then simply run ./bin/build install:prod
You can customize the remote fig.production.yml
for custom behavior
Default run using fig.yml
file.
# To start in development mode
./bin/start
# DEVELOPMENT MACHINE ONLY
# to start in production conditions
IMMO_ENVIRONMENT=production ./bin/start
# To stop all containers
./bin/stop
For now, there is no graceful restart, we kill containers and recreate them.
ssh recherche.immo.prod
cd ~/recherche.immo
# stop containers
fig -f fig.production.yml stop
# rm existing containers
fig -f fig.production.yml rm
# start fresh containers
fig -f fig.production.yml up -d app lb
./bin/build
is the publish toolbelt.
For detailed informations, run
./bin/build --help
# Dokku
./bin/build stage
# Production
./bin/build production
To clean server containers, simply run ./bin/build clean:prod
This project is proprerty of Julien Muetton