Use this repo to start a new project.
You likely want to download and not clone or fork. Then you can git init
and start a new repo.
Follow the steps below to configure and initialize.
- Run
cd scripts; sh config.sh
(orconfig.bat
) - Setup
apex/_ins.sql
with the correct Workspace & App Number - Decide if your project will use a static or dynamic template
_release_template_static.sql
or_release_template_dynamic.sql
. You could optionally delete one of them. - Generate for your
_release.sql
script ASCII Art - Optionally remove directories that won't apply (ie. conversion)
Start a new release:
- Run commands like the following depending on a static or dynamic release
rm ../release/[a-z]*.sql
cp ../release/_release_template_static.sql ../release/_release.sql
rm ../release/[a-z]*.sql
cp ../release/_release_template_dynamic.sql ../release/_release.sql
- Optionally modify
script/new.sh
as needed
sh scripts/new.sh
Folder | Description |
---|---|
apex | Application exports |
bin | Binary files, executable scripts, Sublime/VSC specific files |
data | Conversion and seed data scripts |
docs | Project documents |
install | Installation scripts of none code objects like tables, types, and indexes. |
lib | Installation libraries (OSS, Logger, etc..) |
release | Current release scripts for changes and patching |
release/ddl | Current release scripts DDL |
release/dml | Current release scripts DML |
scripts | Usually re-runable scripts referenced by a release script |
packages | Packages (.pls & .plb or .pks & .pkb ), triggers (not audit triggers) or sometimes stand alone procedures and functions. |
sql | Generic sql scripts that are not part of the application |
tmp | Garbage stuff, not under version control |
synonyms | Application Synonyms |
triggers | Application Triggers |
views | Application views |
www | Assets that go in the server: images, CSS, and JavaScript |
Note: This script was developed intnerally by Insum Solutions
Status: POC
This node.js application will automatically add files in the views
and packages
directory into a release file.
You must make sure that the following is included in your release file:
-- AUTOREPLACE_START
-- AUTOREPLACE_END
The code will automatically fill in the section between these lines.
node ./release/release.js ./release/<release file>
Example:
# Go to releases folder in trunk/master of current SVN/Git project
cd releases
node release.js _release.sql
This application can be run multiple times as it keeps the substitution strings.