Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
YotamShvartsun committed May 14, 2020
2 parents 28b4a2b + 9c6eac0 commit 96fc297
Show file tree
Hide file tree
Showing 19 changed files with 3,486 additions and 3,920 deletions.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ add_library(chttp SHARED
src/chttp/RequestHandler.cpp
src/chttp/Router.cpp
src/chttp/Server.cpp
include/chttp/data/Cookie.hpp)
include/chttp/data/Cookie.hpp
include/chttp/util/CHttpError.hpp)

target_include_directories(chttp PRIVATE include)
target_include_directories(chttp PRIVATE include/chttp)
Expand Down
12 changes: 9 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
FROM alpine

COPY . /server
WORKDIR server
RUN ls
RUN apk add cmake make g++ nodejs npm
# Change some enviorment vars to make sure the build will be sucssesful
ENV LD_LIBRARY_PATH=/usr/local/lib64
ENV NODE_ENV=production
# install the tools required for compilation
RUN apk add cmake make g++ nodejs npm
# build CHttp
RUN mkdir build && cd build && cmake .. && make && make install
# Build the example site - the server
RUN mkdir examples/build && cd examples/build && cmake .. && make
# install the front-end deps and build the front end
RUN cd examples/client && npm install && npm run-script build
# Run the example server
WORKDIR examples/build
CMD ["./examples"]
EXPOSE 80
1 change: 1 addition & 0 deletions examples/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/thirdparty/SQLiteCpp)
include_directories(${CMAKE_CURRENT_LIST_DIR}/thirdparty/SQLiteCpp/include)
include_directories(${CMAKE_CURRENT_LIST_DIR}/thirdparty/json)
include_directories(${chttp_INCLUDE_DIRS})
include_directories(../include)

add_executable(examples main.cpp)

Expand Down
Loading

0 comments on commit 96fc297

Please sign in to comment.