Git Product home page Git Product logo

opacms's Introduction

== OpaCms ==

Author Matthieu Guffroy

build : make
launch : ./opacms.exe (port 8080)
         ./opacms.exe --server-port nnnn (port nnnn)

The editor : 
The wysiwyg editor is TinyMCE.
It's done using some bypass

Edit page :
goto /user or /admin
login with admin:admin
go back to the / page
you can edit the page and create new one

DEMO :
A demo is here 
=> http://opacmsdemo.mattgu.com


=== TUTO APACHE ===

== 1. Use a subdomain ==
This my example config file for opacmsdemo.mattgu.com :

<VirtualHost *:80>
	ServerName   opacmsdemo.mattgu.com:80
	ProxyPass / http://127.0.0.1:8080/
	ProxyPassReverse / http://127.0.0.1:8080/
	ProxyPreserveHost on
	ProxyRequests On
	ProxyVia On

	<Proxy *>
		Order allow,deny
		Allow from all
	</Proxy>
</VirtualHost>


==2. Use an alias ==
If you want to get an alias (example: www.mysite.com/opacms)
You must have :

ProxyPass /opacms http://localhost:8080/opacms
ProxyPassReverse /opacms http://localhost:8080/opacms
ProxyPreserveHost on
ProxyVia On

The Two first line are indeed very usefull,
the ProxyPreserveHost is also really import for OPA. If not you could have some problem.
I don't know if the ProxyVia is important you could try without.
Then you need to launch your server with the option (--base-url opacms).

==== Solution with nginx ====

Here is my nginx file, for the demo :

server {
  server_name opacmsdemo.mattgu.com;

  location / {
    proxy_set_header  Host                opacmsdemo.mattgu.com;
    proxy_set_header  X-Real-IP           $remote_addr;
    proxy_set_header  X-Forwarded-For     $proxy_add_x_forwarded_for;
    proxy_pass                            http://10.0.0.106;
  }
}

http://10.0.0.106 is where is launched your application.
It could be somthing like : http://localhost:8080

opacms's People

Contributors

mattgu74 avatar trecouvr avatar

Stargazers

Crystal Silver avatar Cooper Stimson avatar Ramon Barros avatar Denis avatar  avatar Deivide Oliveira avatar Chris McClean avatar Rashaad Essop avatar  avatar  avatar  avatar Frederic Ye avatar Alexandre Rosenfeld avatar

Watchers

 avatar James Cloos avatar  avatar JH Dong avatar

Forkers

arsfeld

opacms's Issues

Dependency on opaCas not documented

in order to successfully run opaCms there seems to be a dependency on opaCas. I suggest something in the line of the following be added to the readme (is there something like a package manager for opa?)

to build opaCms first:

cd ..
git clone https://github.com/mattgu74/opaCas.git
make
cd OpaCms
make

Memory Leak?

I have been mucking around with opa this afternoon waiting for the OS release. I do not know if this is an OpaCms or an Opa issue.

I am using OS X and release version S3.3 -- build 28888

I used skipfish to do some load testing on the application and I found two issues:

 skipfish -W path_to_skipfish/dictionaries/complete.wl  -o ./opacms http://localhost:8081
  1. Memory seems to pile up without being released. it starts occupying 69 Mb of Real Memory with 2.4 GB of virtual memory. Then it rapidly climbs. After about half an hour it reaches more then 2gb of real memory and 4 of VM. Some decrease can be noticed later, but it stays stable at around 1.5 gb.
  2. Response times steadily decrease. It starts at around 400 requests per second and quickly goes down to around 80 after half an hour.

Being an absolute opa newbie, its hard for me to know if this is application specific. Is there a way to profile this?

Parse error while building project

Hi,

I uploaded the project zip on my server and unzipped. Then i went to the project folder and ran following command:

sagar@Debian-60-squeeze-64-minimal:~/opa/OpaCms-master$

Here is the error i got:

Parse error
The error may be in the following citation, usually in the red part
(starting at ⚐) or just before:

e

Editor = {{
base_url = Resource.base_url?""

l⚐oad = <script type="text/javascript" src="{base_url}/tinymce/jscripts/tiny_mce/tiny_mce.js"></script>

@client init()=
((%% editor.init %%)())

Hint:
expected a returned expression at the end of the block, but found a binding. Did you mean ==' rather than=' ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.