-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
38 lines (38 loc) · 994 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#
# Silo -- a simple, general purpose file system for LSL via HTTP
# version 2021-06-29
# by John Dougan
#
# Copyright (c) 2021 John Dougan
# Licensed under the "MIT" open source license.
#
# This file is only part of the whole distribution.
# Makefile -- Config for Replit, PHP Web Server.
#
# Makefile for development on Replit in a PHP Web Server repl.
# Unzip ito the repl, move file to root, then make all
# Start the PHP server via the run button, make tests
#
all:
mkdir -p data
#
# Test againt the local silo.
#
tests:
# rm -rf data/*
python3 test.py http://localhost:8000/silo.php 2> test.log
#
clean:
rm -rf test.log data .replit rtest.log
#
replit:
echo 'run = "php -S 0.0.0.0:8000 -t ." ' > .replit
mkdir -p data
#
# For testing in my cygwin dev env
testserver:
php -S 0.0.0.0:8000 -t .
#
# Uncomment and replace the url with the correct url for replit
#replittests:
# python3 test.py https://OfficialInexperiencedSpheres.jdougan.repl.co/silo.php 2> rtest.log