best practice to put under git my nitrogen project

61 views
Skip to first unread message

giancarlo.valente

unread,
Oct 15, 2012, 10:41:01 AM10/15/12
to nitro...@googlegroups.com
Hi all, I'm working on my first Nitrogen project, and an expert advice would be useful about the best strategy to put a project under source control.
two questions:
do I have to create my git repo under the /site directory?
and what is the strategy to update the nitrogen framework when a new version is released?

Jesse Gumm

unread,
Oct 15, 2012, 3:49:02 PM10/15/12
to nitro...@googlegroups.com
Hello Giancarlo,

The current recommended method of adding your site to source control
is to add the /site directory to your source control.

To upgrade, the easiest method would be to update your rebar.config
file the point to the latest tag (or to HEAD) and then run

make update-deps

Then manually copy the contents from lib/nitrogen_core/www into the
site/static/nitrogen directory

Then run `make` to build all the latest changes


This is soon to be added to the Makefile (ie: make upgrade) to
simplify this process, as the current method is a little tedious.

-Jesse
> --
> You received this message because you are subscribed to the Google Groups
> "Nitrogen Project / The Nitrogen Web Framework for Erlang" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/nitrogenweb/-/qggVjVZqA8MJ.
> To post to this group, send email to nitro...@googlegroups.com.
> To unsubscribe from this group, send email to
> nitrogenweb...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/nitrogenweb?hl=en.



--
Jesse Gumm
Owner, Sigma Star Systems
414.940.4866 || sigma-star.com || @jessegumm

Jesse Gumm

unread,
Oct 15, 2012, 4:25:28 PM10/15/12
to nitro...@googlegroups.com
Also, with the newest current version of Erlang (R15B02), I'm looking
into adding support for creating packages that take advantage of the
new release generation that doesn't include a complete copy of the
Erlang Runtime System (ERTS). This will make it convenient to add
your whole Nitrogen installation to your source control. That way, you
can add your configs, Makefile, and all that to your installation
without having to "cheat" by using symlinks.

-Jesse

giancarlo.valente

unread,
Oct 17, 2012, 5:10:43 AM10/17/12
to nitro...@googlegroups.com, gu...@sigma-star.com
This would be great for collaboration, in order to have a "ready to go" repository ...
just clone, make run ...

thankyou ... I'm keep going with nitrogen
cheers
Giancarlo
Reply all
Reply to author
Forward
0 new messages