Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cinatra docker #184

Open
opakaj opened this issue Mar 11, 2021 · 8 comments
Open

Cinatra docker #184

opakaj opened this issue Mar 11, 2021 · 8 comments

Comments

@opakaj
Copy link

opakaj commented Mar 11, 2021

Anyone with the cinatra docker file? Or implementation ideas for an api build with the framework for cloud deploying?

@qicosmos
Copy link
Owner

@opakaj
Copy link
Author

opakaj commented Apr 2, 2021

Why doesn't it run correctly when I update the main.cpp code. There's something I'm not seeing.
For example, I may change hello world to hello worlds fir the /plaintext url with a new image tag but no change in output. Yet building the original works. The issue started after removing the comments from main.cpp of example folder.

@qicosmos
Copy link
Owner

@opakaj Could you try this cinatra dockerfile?#194

@opakaj
Copy link
Author

opakaj commented Apr 27, 2021

I'm using the dockerfile from framework. Now for some reason, I get build errors for the test functions during compilation. Can you help show me the caus.
Its stops building at 50%
16195436342526226936393822703720

16195436922222352645862636728236
16195437252451242629742702040248
16195437480874151255704052320754

@opakaj
Copy link
Author

opakaj commented Apr 27, 2021

Is seems some files are missing in the new cinatra master. Like nlohmann Jason file. And it seems some endpoints won't work like those with render 404 and set_attr functions. Please clarify.

@LIZHICHAOUNICORN
Copy link
Contributor

@opakaj hi, I use this dockerfile rebuild cinatra master branch, but I can't reproduce your compilation error , could you provide more information, like your machine os, cinatra git log and other context ?

@opakaj
Copy link
Author

opakaj commented May 3, 2021

@qicosmos why doesn't the new cinatra master file recognise certain functions like set_attr(),and render_404() etc even with response.hpp in the project. I had to use the response. Hpp of the previous cinatra package but it also has some issues...

@qicosmos
Copy link
Owner

qicosmos commented May 4, 2021

@opakaj Actually i have removed json file from cinatra, i think it's should not belong to a http server, the user can import any json library as their wishes.
You could find the interface in old version, and you could copy it in your application.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants