Commit Graph

60 Commits

Author SHA1 Message Date
NotZippy
17459d14e6 Split main file
Added code to split the generated main file into two separate files. This allows other code to launch the web application inline.
2018-09-19 09:47:51 -07:00
NotZippy
4d7a290247 Updated readme, Updated travis 2018-09-16 20:04:40 -07:00
NotZippy
3ad381d45b Enhanced package and build to by default not include any source code 2018-09-14 21:32:20 -07:00
NotZippy
d0baaeb9e9 Initial rewrite of revel/cmd to provide vendor support and enhanced CLI options 2018-09-14 21:26:25 -07:00
Alexander Lokhman
fe56bdd8a3 Fix DefaultValidationKeys generated with wrong line for multiline check 2018-02-12 15:37:35 +00:00
notzippy
97ec142262 Merge pull request #117 from tike/master
fix import path trimming during main.go generation
2018-02-04 16:32:57 -08:00
tike
dfc873bc15 fix import path trimming during main.go generation
The importPathFromPath function invoked during `revel build`
in callchain Build -> ProcessSource ->  importPathFromPath
assumes that the vendor folder is in the app's root directory
when trimming import paths for inclusion into autogenerated
templates.

Consequently vendor detection fails if the vendor folder
is located at another hiher layer in the directory tree
and /prefix/path/to/vendor/ is not stripped from the
import path, leading to inclusion of invalid importpaths,
resulting in compilation error and build abortion.

This fix makes the vendor folder detection more flexible,
allowing for the vendor folder to be present at any higher
level in the directory hirachy.
2018-02-01 15:25:13 +01:00
NotZippy
91f43bf94c Added check to ignore functions which have no body (external functions)
Added missing sort package
2018-01-30 09:23:21 -08:00
notzippy
0583fe7d32 Merge pull request #108 from rokeller/develop
Generate same value of AppVersion regardless of where revel is run
2018-01-29 21:28:08 -08:00
notzippy
6ca1d73b61 Merge pull request #112 from nathantchan/stable_controllers
Sort controllers so that builds are reproducible.
2018-01-29 21:27:18 -08:00
meifakun
8efaff19ce map as a argument in the controller action 2018-01-15 16:07:46 +08:00
Nathan Chan
fc904827cd Make sorting compatible with go >= 1.6 2017-12-11 09:55:26 -08:00
Nathan Chan
c240b05369 Sort controllers so that builds are reproducible.
Ordering of controllers in routes.go and main.go is unstable in
successive runs of revel build.  This change will assure that the
ordering is stable.
2017-12-08 11:37:28 -08:00
Roger Keller
a2acbe32bf Make sure AppVersion is set without the -dirty suffix for non-dirty work trees regardless of where revel is run from. 2017-10-28 21:20:28 +02:00
NotZippy
2d4ccf289c Set line number to use left parenthesis not right 2017-10-07 21:41:23 -07:00
NotZippy
637ccbd250 Updated skeleton to added critical.
modified db.import to support multiple packages
2017-10-07 21:39:13 -07:00
NotZippy
aa9e0f8600 Added code to make vendoring work 2017-09-25 07:36:48 -07:00
NotZippy
17e7d40d31 Fixed missing debug context parameter name
Added check to see if specfication was not exported
Added warnings if expected types did not match specification
2017-09-20 17:49:34 -07:00
NotZippy
baf5e9f848 Added check to see if parameter was a local object, if so parse it 2017-09-14 17:15:22 -07:00
NotZippy
9d57681ae6 Updated command to use new logging 2017-09-02 09:10:21 -07:00
NotZippy
c0a515facf Changed listener to be a pointer receiver so setting the channel to nil actually persists 2017-08-24 21:48:49 -07:00
NotZippy
e6b34786bb Added mutex lock on Refresh, removed check for app existence 2017-08-07 16:56:19 -07:00
NotZippy
5fcde12193 Moved watcher inside harness
Modified proxy so application is launched on startup
2017-07-28 13:27:28 -07:00
NotZippy
e5255cd373 Updated as requested 2017-07-06 15:31:43 -07:00
NotZippy
efcd02de37 Modified harness to bootstrap using the go engine. Skeleton app updated to use new request code 2017-06-07 09:45:09 -07:00
NotZippy
e1776bda3c Rollback a change that was committed by mistake to develop branch 2017-04-26 21:04:12 -07:00
notzippy
d68b27ae81 Merge pull request #86 from tw4452852/version
fix version check against devel
2017-04-21 08:55:01 -07:00
Tw
19ca52182d fix version check against devel
Signed-off-by: Tw <tw19881113@gmail.com>
2017-04-10 22:31:37 +08:00
NotZippy
d2b1730439 Makes it so harness can bootstrap using the new GoRequest / response wrappers 2017-04-04 17:17:23 -07:00
Brenden Soares
6ec49296c9 Merge branch 'master' into develop 2017-03-24 10:38:36 -07:00
NotZippy
8dac9acf77 Changed samples to example to match repository 2017-03-09 16:01:04 -08:00
sawada_shinnosuke
d8c5c0732f supporting binary vendoring 2016-08-29 11:03:20 +09:00
Jeevanandam M
0e6d8d56a2 ldflags issue commit, read more...
This commit is address 1.7 release. RC3 is already out there. It may lead to merge conflict while merging develop branch. Since enhancements are done.
2016-07-21 17:22:15 -07:00
Jeevanandam M
612de1d3a4 #51 - Streamlined app version ad buildtime for revel app 2016-06-25 19:04:40 -07:00
Jeevanandam M
c18d43d25e Merge pull request #55 from sergeylanzman/master
fix -X import.name=value
2016-06-17 15:32:54 -07:00
Sergey Lanzman
ab1e84cf41 Streamline Revel AppVersion and BuildTime and fix -X import.name=value 2016-06-18 01:28:24 +03:00
Jeevanandam M
a5c8a8da09 revel/revel#1057 code improvements docs, errcheck, cyclo, etc 2016-06-17 14:34:22 -07:00
Jeevanandam M
5a57eaa743 revel/revel#1057 code improvements 2016-06-08 19:32:13 -07:00
Jeevanandam M
514b078c3d revel/revel#1057 addressing golint ALL_CAPS 2016-06-08 12:09:48 -07:00
Jeevanandam M
e485de7e9c #46 cross platform support 2016-06-07 00:16:51 -07:00
Jeevanandam M
4b9e74e1ea revel/revel#1064 windows filepath fix 2016-06-06 15:36:16 -07:00
Jeevanandam M
1f8f106573 Related changes by #20 for Walk method 2016-05-27 23:30:14 -07:00
Jeevanandam M
6ebd22021e #32 PR merge and code improvements 2016-05-23 22:54:44 -07:00
Jeevanandam M
688042ffa5 Merge branch 'feature/ssl-support-for-websockets' of https://github.com/mattbaird/cmd into mattbaird-feature/ssl-support-for-websockets 2016-05-23 22:38:05 -07:00
Jeevanandam M
4f0489d0e6 print only valid error msg 2016-05-21 23:14:42 -07:00
Jeevanandam M
04e8dfdcbf Merge pull request #43 from ottob/build-install-deps
Install package dependencies when building
2016-05-21 22:26:56 -07:00
yyoshiki41
4d8dbe0fe1 Format go code 2016-05-22 11:35:42 +09:00
Otto Bretz
eaf28d397f Install package dependencies when building
This speeds up recurring compiles a lot.
2016-05-21 20:26:55 +02:00
Brenden Soares
8a7b1a81ac Merge pull request #31 from rnubel/fix/ignore_missing_dir_on_clean
Ignore missing temporary directories in build.cleanDir
2015-09-26 01:11:03 -07:00
Matthew Baird
f122160a11 fix issue where websockets don't work with SSL in dev mode.
As the comment says, it's ok to skip the verify on the cert since
this proxy is only used in dev mode.
2015-08-11 14:45:02 -07:00