diff --git a/app.js b/app.js index b9bf46c..78f9396 100644 --- a/app.js +++ b/app.js @@ -22,8 +22,6 @@ require('./lib/app-router')(router); app.use('/api', router); - - const port = process.env.PORT || 8443; // if local, use 8443 and certificate diff --git a/assets/deployments.sql b/assets/deployments.sql new file mode 100644 index 0000000..89677d6 --- /dev/null +++ b/assets/deployments.sql @@ -0,0 +1,31 @@ + +SET statement_timeout = 0; +SET lock_timeout = 0; +SET idle_in_transaction_session_timeout = 0; +SET client_encoding = 'UTF8'; +SET standard_conforming_strings = on; +SET check_function_bodies = false; +SET client_min_messages = warning; +SET row_security = off; +SET search_path = public, pg_catalog; +SET default_tablespace = ''; +SET default_with_oids = false; + +CREATE TABLE deployments ( + id integer NOT NULL, + username text, + created_at timestamp without time zone DEFAULT now(), + repo text +); + +CREATE SEQUENCE deployments_id_seq + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + +ALTER SEQUENCE deployments_id_seq OWNED BY deployments.id; +ALTER TABLE ONLY deployments ALTER COLUMN id SET DEFAULT nextval('deployments_id_seq'::regclass); +ALTER TABLE ONLY deployments + ADD CONSTRAINT deployments_pkey PRIMARY KEY (id); \ No newline at end of file diff --git a/views/partials/footer.ejs b/views/partials/footer.ejs index d9388af..88979f7 100644 --- a/views/partials/footer.ejs +++ b/views/partials/footer.ejs @@ -1,8 +1,8 @@